diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/jumper_logging_agent/agent.py b/jumper_logging_agent/agent.py
index <HASH>..<HASH> 100644
--- a/jumper_logging_agent/agent.py
+++ b/jumper_logging_agent/agent.py
@@ -34,6 +34,8 @@ def is_fifo(filename):
def open_fifo_read(filename):
+ if not os.path.exists(DEFAULT_INPUT_FILENAME):
+ os.maked... | creating /var/run/jumper_logging_agent/ if it doesnt exist | py |
diff --git a/wood/comparison.py b/wood/comparison.py
index <HASH>..<HASH> 100644
--- a/wood/comparison.py
+++ b/wood/comparison.py
@@ -349,9 +349,13 @@ class DirectoryComparison(Comparison[Directory, Directory]):
# could also just `yield name + '*'`, however this could
# over-invalidate if mul... | Only invalidate directories themselves if they have been deleted | py |
diff --git a/segno/writers.py b/segno/writers.py
index <HASH>..<HASH> 100644
--- a/segno/writers.py
+++ b/segno/writers.py
@@ -1081,7 +1081,6 @@ def _make_colormap(dark, light,
:param quiet_zone: Color of the quiet zone / border.
:rtype: dict
"""
- print('dark cm', dark)
mt2color = {
con... | Removed print stmts | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -335,8 +335,7 @@ class PrimaryVolumeDescriptor(object):
self.volume_set_identifier,
self.publisher_identifier.identification_string(),
... | Switch to our own application identifier | py |
diff --git a/tests/test_simulate_summary.py b/tests/test_simulate_summary.py
index <HASH>..<HASH> 100644
--- a/tests/test_simulate_summary.py
+++ b/tests/test_simulate_summary.py
@@ -17,10 +17,15 @@ def test_sim_summary():
'maf': True,
'use_unmapped': False,
'genome': '',
- ... | simulate summary unit test now also checks for errors in the summarized feature output format also | py |
diff --git a/heron/statemgrs/src/python/zkstatemanager.py b/heron/statemgrs/src/python/zkstatemanager.py
index <HASH>..<HASH> 100644
--- a/heron/statemgrs/src/python/zkstatemanager.py
+++ b/heron/statemgrs/src/python/zkstatemanager.py
@@ -81,7 +81,13 @@ class ZkStateManager(StateManager):
"""Custom callback to... | ISSUE-<I> - gracefully log zookeeper path not found (#<I>) | py |
diff --git a/mailchimp3/entities/batches.py b/mailchimp3/entities/batches.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/entities/batches.py
+++ b/mailchimp3/entities/batches.py
@@ -7,9 +7,7 @@ Schema: https://api.mailchimp.com/schema/3.0/Batches/Instance.json
"""
from __future__ import unicode_literals
-import js... | Finish removing unneeded method imports and docstring info | py |
diff --git a/src/confluent_kafka/avro/serializer/message_serializer.py b/src/confluent_kafka/avro/serializer/message_serializer.py
index <HASH>..<HASH> 100644
--- a/src/confluent_kafka/avro/serializer/message_serializer.py
+++ b/src/confluent_kafka/avro/serializer/message_serializer.py
@@ -177,7 +177,10 @@ class Messag... | Avoid raising an Exception when parsing a None `reader_schema_obj` | py |
diff --git a/vyper/context/validation/module.py b/vyper/context/validation/module.py
index <HASH>..<HASH> 100644
--- a/vyper/context/validation/module.py
+++ b/vyper/context/validation/module.py
@@ -173,6 +173,7 @@ class ModuleNodeVisitor(VyperNodeVisitorBase):
type_definition = get_type_from_annotation(
... | feat: annotate module-level ast nodes with type data | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -164,7 +164,7 @@ setuptools.setup(
'collections': [
'pyparsing',
'unidecode',
- 'edtf>=2.0.1',
+ 'edtf>=2.5',
'webcolors==1.5',
'colormath==2.1... | #<I> Use EDTF version <I> with faster parsing | py |
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -167,6 +167,13 @@ class SimState(object): # pylint: disable=R0904
return self.constraints.new_symbolic(name, size)
def new_bvv(self, value, size=None):
+ if type(v... | new_bvv takes strings now | py |
diff --git a/python_modules/dagster/dagster/core/execution/plan/plan.py b/python_modules/dagster/dagster/core/execution/plan/plan.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/execution/plan/plan.py
+++ b/python_modules/dagster/dagster/core/execution/plan/plan.py
@@ -360,6 +360,11 @@ class Ex... | docstring for ExecutionPlan.execution_deps Summary: Found myself trying to figure out what this would return and figured I could save the effort for the next person. Test Plan: none Reviewers: alangenfeld, cdecarolis Reviewed By: alangenfeld Differential Revision: <URL> | py |
diff --git a/salt/modules/win_file.py b/salt/modules/win_file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_file.py
+++ b/salt/modules/win_file.py
@@ -1039,9 +1039,12 @@ def is_link(path):
salt '*' file.is_link /path/to/link
'''
if sys.getwindowsversion().major < 6:
- raise SaltInvocati... | Changed win_file.is_link so it has the same behaviour as islink on *nix. | py |
diff --git a/guake/guake_app.py b/guake/guake_app.py
index <HASH>..<HASH> 100644
--- a/guake/guake_app.py
+++ b/guake/guake_app.py
@@ -1307,7 +1307,7 @@ class Guake(SimpleGladeApp):
def restore_tabs(self, filename='session.json', suppress_notify=False):
session_file = self.get_xdg_config_directory() / fil... | Improve log message when session.json not found. Improve grammar and wording of the message printed to the log when the file session.json is not found upon start. | py |
diff --git a/test/test_serve.py b/test/test_serve.py
index <HASH>..<HASH> 100644
--- a/test/test_serve.py
+++ b/test/test_serve.py
@@ -14,7 +14,7 @@ def simple_server():
def hello(env, req):
return 'Hello, World!'
- app.run()
+ app.run(host='127.0.0.1')
class TestServe(unittest.TestCase):
@@ ... | Use ip instead of localhost for travis | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,8 @@ import re
from setuptools import setup
-init_py = open('demands/__init__.py').read()
-metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
+with open('demands/__init__.py') as init_py:
+ metadata ... | Read from __init__.py file properly | py |
diff --git a/tests/schema.py b/tests/schema.py
index <HASH>..<HASH> 100644
--- a/tests/schema.py
+++ b/tests/schema.py
@@ -4,7 +4,7 @@
#
# pylint: disable=missing-docstring, invalid-name, protected-access
# pylint: disable=bare-except
-from __future__ import absolute_import
+from __future__ import absolute_import, p... | fix: add missing import, print_function from __future__ | py |
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/remote/webdriver.py
+++ b/py/selenium/webdriver/remote/webdriver.py
@@ -179,8 +179,7 @@ class WebDriver(object):
self.capabilities = response['value']
... | w3c needs to be set for all instances of webdriver Fixes #<I> | py |
diff --git a/phoebe/frontend/bundle.py b/phoebe/frontend/bundle.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/bundle.py
+++ b/phoebe/frontend/bundle.py
@@ -811,11 +811,15 @@ class Bundle(Container):
"""
Retrieve a Body or BodyBag from the system
+ if twig is None, will return t... | get_object(None) now returns the top-level system (as it used to) | py |
diff --git a/poker/website/twoplustwo.py b/poker/website/twoplustwo.py
index <HASH>..<HASH> 100644
--- a/poker/website/twoplustwo.py
+++ b/poker/website/twoplustwo.py
@@ -1,7 +1,7 @@
import re
from datetime import datetime, timezone, timedelta
from collections import namedtuple
-from xml.etree import ElementTree
+fr... | changed stdlib xml.etree.ElementTree to lxml.etree | py |
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py
index <HASH>..<HASH> 100644
--- a/hvac/v1/__init__.py
+++ b/hvac/v1/__init__.py
@@ -931,7 +931,7 @@ class Client(object):
self._adapter.post('/v1/auth/token/revoke-prefix/{0}'.format(prefix))
def renew_token(self, token=None, increment=None, wrap_tt... | Send token as a param, to avoid token been logged by the audit log (#<I>) * Send token as a param, to avoid token on the path because it's logged by the audit log * No send params for renew-self endpoint | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,16 +37,10 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.4',
- 'Prog... | update setup.py remove outdated classifiers and commented dependencies | py |
diff --git a/holviapi/connection.py b/holviapi/connection.py
index <HASH>..<HASH> 100644
--- a/holviapi/connection.py
+++ b/holviapi/connection.py
@@ -79,7 +79,7 @@ class Connection(object):
# We can't trust the cache after we have made changes of our own
self.session.cache.clear()
m = getatt... | new requests has json payloads built in | py |
diff --git a/domovoi/app.py b/domovoi/app.py
index <HASH>..<HASH> 100644
--- a/domovoi/app.py
+++ b/domovoi/app.py
@@ -119,6 +119,10 @@ class Domovoi(Chalice):
if sns_topic not in self.sns_subscribers:
raise DomovoiException("Received SNS or S3-SNS event with no known handler")
... | Fix routing of domovoi dynamodb handlers | py |
diff --git a/astrobase/periodbase/kbls.py b/astrobase/periodbase/kbls.py
index <HASH>..<HASH> 100644
--- a/astrobase/periodbase/kbls.py
+++ b/astrobase/periodbase/kbls.py
@@ -1097,7 +1097,8 @@ def bls_snr(blsdict,
allsubtractedmags, allphases, allphasedmags = None, None, None
return {'npeaks':npeaks,
- ... | kbls.bls_snr: return refit periods and epochs | py |
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index <HASH>..<HASH> 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -399,12 +399,14 @@ class ChainIndexing:
def setup(self, mode):
self.N = 1000000
+ self.df = DataFrame({"A":... | BENCH: tighter targeting on ChainedIndexing benchmark (#<I>) | py |
diff --git a/tests/unit/topotools/TopotoolsTest.py b/tests/unit/topotools/TopotoolsTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/topotools/TopotoolsTest.py
+++ b/tests/unit/topotools/TopotoolsTest.py
@@ -56,7 +56,7 @@ class TopotoolsTest:
net.clear(mode='labels')
assert net.labels() == ['pore.a... | Find surface pores is better now and finds more pores | py |
diff --git a/dbt/parser.py b/dbt/parser.py
index <HASH>..<HASH> 100644
--- a/dbt/parser.py
+++ b/dbt/parser.py
@@ -221,6 +221,12 @@ def parse_node(node, node_path, root_project_config, package_project_config,
node.get('raw_sql'), context, node,
capture_macros=True)
+ # Clean up any open connectio... | clean up open connections created during parsing (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ setup(
install_requires=[
'PyYaml>=4.2b1',
'dnspython>=1.15.0',
- 'futures>=3.2.0',
+ 'futures>=3.2.0; python_version<"3.2"',
'ipaddress>=1.0.22',
'natsort>... | setup.py install_requires futures only on <I> | py |
diff --git a/odinweb/utils.py b/odinweb/utils.py
index <HASH>..<HASH> 100644
--- a/odinweb/utils.py
+++ b/odinweb/utils.py
@@ -9,6 +9,7 @@ from __future__ import absolute_import, unicode_literals
import os
import base64
+import itertools
from . import _compat
@@ -46,19 +47,28 @@ def to_bool(value):
return... | Added filter tools for dictionaries | py |
diff --git a/graphs/tests/test_analysis.py b/graphs/tests/test_analysis.py
index <HASH>..<HASH> 100644
--- a/graphs/tests/test_analysis.py
+++ b/graphs/tests/test_analysis.py
@@ -63,7 +63,6 @@ class TestAnalysis(unittest.TestCase):
self.assertEqual(G.profile(), 1)
def test_betweenness(self):
- ef, et = n... | Splitting up btw tests | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -33,7 +33,7 @@ def tmpdir(tmpdir):
deleting the temporary directories at the end of each test case.
"""
assert tmpdir.isdir()
- yield str(tmpdir)
+ yield tmpdir
# C... | Yield a tmpdir instead of str for tmpdir fixture | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ extras_require = {
setup(
name='moto',
- version='1.1.11',
+ version='1.1.12',
description='A library that allows your python tests to easily'
' mock out the boto library',
... | bumping to version <I> | py |
diff --git a/pyphi/actual.py b/pyphi/actual.py
index <HASH>..<HASH> 100644
--- a/pyphi/actual.py
+++ b/pyphi/actual.py
@@ -10,6 +10,7 @@ import itertools
import logging
import numpy as np
from pprint import pprint
+from math import log2
from . import compute, exceptions, utils, validate
from .constants import Di... | Implemented new measure for alpha if PARTITION_MECHANISM == True, alpha = log2(probability/partitioned_probability) | py |
diff --git a/pywb/warc/resolvingloader.py b/pywb/warc/resolvingloader.py
index <HASH>..<HASH> 100644
--- a/pywb/warc/resolvingloader.py
+++ b/pywb/warc/resolvingloader.py
@@ -117,7 +117,7 @@ class ResolvingLoader(object):
if not possible_paths:
continue
- if isinstance(possibl... | resolvingloader: use string_types instead of str for compat | py |
diff --git a/arq/worker.py b/arq/worker.py
index <HASH>..<HASH> 100644
--- a/arq/worker.py
+++ b/arq/worker.py
@@ -36,7 +36,7 @@ class BadJob(Exception):
# special signal sent by the main process in case the worker process hasn't received a signal (eg. SIGTERM or SIGINT)
-SIG_PROXY = signal.SIGRTMIN + 7
+SIG_PROXY... | switch SIGRTMIN to just SIGUSR1 | py |
diff --git a/salt/auth/__init__.py b/salt/auth/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/auth/__init__.py
+++ b/salt/auth/__init__.py
@@ -276,7 +276,7 @@ class Authorize(object):
him execute "load", this does not deal with conflicting rules
'''
- adata = self.auth_data()
+ ada... | Pylint fix for the <I> branch | py |
diff --git a/abydos/phonetic.py b/abydos/phonetic.py
index <HASH>..<HASH> 100644
--- a/abydos/phonetic.py
+++ b/abydos/phonetic.py
@@ -569,6 +569,7 @@ def mra(word):
https://archive.org/details/accessingindivid00moor
"""
word = word.upper()
+ word = word.replace('ß', 'SS')
word = word[0]+''.join(... | also upper ß in mra() | py |
diff --git a/meshio/_mesh.py b/meshio/_mesh.py
index <HASH>..<HASH> 100644
--- a/meshio/_mesh.py
+++ b/meshio/_mesh.py
@@ -144,6 +144,32 @@ class Mesh:
cell_data_dict[key][cell_type] = numpy.concatenate(val)
return cell_data_dict
+ @property
+ def cell_sets_dict(self):
+ sets_di... | new property Mesh.cell_sets_dict, fixes #<I> | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -58,8 +58,8 @@ def test_abort_transaction_on_failure(app):
assert db['answer'] == 42
1/0
- with app.test_request_context():
- assert 'answer' not in db
+ with app.test_request_conte... | pass tests on <I>/<I> | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -1302,11 +1302,15 @@ class Editor(SpyderPluginWidget):
self.dockwidget.setFocus()
self.dockwidget.raise_()
+ ... | Windows platforms/Editor/filename list sorting bugfix: drive letters in filenames were most of the time upper cased but sometimes lower cased (when following an error link in the console) | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -46,12 +46,13 @@ class Torrent():
>>> from torf import Torrent
>>> torrent = Torrent('path/to/My Torrent',
... trackers=['https://localhost:123/announce'],
- ... | Fix examples in Torrent docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
author='Corey Oordt',
author_email='coordt@washingtontimes.com',
include_package_data=True,
- url='http://opensource.washingtontimes.com/projects/django-categories/',
+ url='http://gi... | Fixed the homepage in the setup.py | py |
diff --git a/cltk/corpus/sanskrit/corpora.py b/cltk/corpus/sanskrit/corpora.py
index <HASH>..<HASH> 100644
--- a/cltk/corpus/sanskrit/corpora.py
+++ b/cltk/corpus/sanskrit/corpora.py
@@ -4,6 +4,5 @@ SANSKRIT_CORPORA = [
'type':'text'},
{'name':'sanskrit_text_dcs',
'location':'remote',
- ... | Pretty formatted the corpora.py file in sanskrit corpus | py |
diff --git a/datafs/core/data_archive.py b/datafs/core/data_archive.py
index <HASH>..<HASH> 100644
--- a/datafs/core/data_archive.py
+++ b/datafs/core/data_archive.py
@@ -624,14 +624,15 @@ class DataArchive(object):
output = output + '\n' + (
'{:<10} {}'.format(attr+':', val))
- ... | suppress message printing if message is None, coerce to str in log | py |
diff --git a/angr/functionmanager.py b/angr/functionmanager.py
index <HASH>..<HASH> 100644
--- a/angr/functionmanager.py
+++ b/angr/functionmanager.py
@@ -219,6 +219,7 @@ class FunctionManager(object):
# A map that uses function starting address as the key, and maps
# to a function class
self... | Added a call graph to the function manager | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from __future__ import print_function
import os
-from distutils.core import setup
+from setuptools import setup
try:
from urllib import urlretrieve | Fixed the issue "unknown distribution option" during the installation. | py |
diff --git a/superset/db_engine_specs/gsheets.py b/superset/db_engine_specs/gsheets.py
index <HASH>..<HASH> 100644
--- a/superset/db_engine_specs/gsheets.py
+++ b/superset/db_engine_specs/gsheets.py
@@ -23,4 +23,4 @@ class GSheetsEngineSpec(SqliteEngineSpec):
engine = "gsheets"
engine_name = "Google Sheets"
... | Enable subqueries in gsheetsdb (#<I>) | py |
diff --git a/examples/export/export.py b/examples/export/export.py
index <HASH>..<HASH> 100755
--- a/examples/export/export.py
+++ b/examples/export/export.py
@@ -28,7 +28,7 @@ from os import path
# splunk support files
from splunklib.binding import connect
try:
- from utils import error, parse
+ from utils im... | Removed reference to error, per David Foster's comments. | py |
diff --git a/web/core/dispatch.py b/web/core/dispatch.py
index <HASH>..<HASH> 100644
--- a/web/core/dispatch.py
+++ b/web/core/dispatch.py
@@ -68,11 +68,8 @@ class WebDispatchers(PluginManager):
))
# Now we need the remaining path elements as a deque.
- path = deque(path.split('/'))
-
- # We don't want ... | Path cleaning simplification, more graceful migration from dispatcher to dispatcher as descent progresses. | py |
diff --git a/src/infi/instruct/buffer/serialize.py b/src/infi/instruct/buffer/serialize.py
index <HASH>..<HASH> 100644
--- a/src/infi/instruct/buffer/serialize.py
+++ b/src/infi/instruct/buffer/serialize.py
@@ -217,7 +217,7 @@ def unpack_str(buffer, **kwargs):
def pack_json(value, **kwargs):
- return pack_str(j... | STORAGEMODEL-<I> fixing pack_json | py |
diff --git a/kuyruk/master.py b/kuyruk/master.py
index <HASH>..<HASH> 100644
--- a/kuyruk/master.py
+++ b/kuyruk/master.py
@@ -71,7 +71,7 @@ class Master(KuyrukProcess):
"""
start = time()
any_alive = True
- while any_alive:
+ while any_alive and not self.shutdown_pending.is_set... | exit from watcher thread if shutdown is pending | py |
diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/tmpdir.py
+++ b/src/_pytest/tmpdir.py
@@ -31,7 +31,7 @@ class TempPathFactory(object):
# using os.path.abspath() to get absolute path instead of resolve() as it
# does not work the same in all plat... | Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated | py |
diff --git a/src/hdx/utilities/saver.py b/src/hdx/utilities/saver.py
index <HASH>..<HASH> 100644
--- a/src/hdx/utilities/saver.py
+++ b/src/hdx/utilities/saver.py
@@ -8,6 +8,10 @@ import yaml
import yamlloader
+def represent_none(self, _):
+ return self.represent_scalar('tag:yaml.org,2002:null', '')
+
+
def sa... | Fix for YAMl library breaking change | py |
diff --git a/pyof/v0x01/controller2switch/common.py b/pyof/v0x01/controller2switch/common.py
index <HASH>..<HASH> 100644
--- a/pyof/v0x01/controller2switch/common.py
+++ b/pyof/v0x01/controller2switch/common.py
@@ -346,7 +346,7 @@ class PortStatsRequest(GenericStruct):
#: Align to 64-bits.
pad = Pad(6)
- ... | Default value for port_no in PortStatsRequest changed (#<I>) The default value was None, which caused error when packing. It has been changed to Port.OFPP_NONE. Fixex `PackException` error running Kytos with OpenFlow <I> #<I> | py |
diff --git a/addok/batch.py b/addok/batch.py
index <HASH>..<HASH> 100644
--- a/addok/batch.py
+++ b/addok/batch.py
@@ -30,6 +30,9 @@ def preprocess_batch(d):
def process_file(filepath):
print('Import from file', filepath)
_, ext = os.path.splitext(filepath)
+ if not os.path.exists(filepath):
+ sys.... | Log and exist when import file does not exist | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -213,7 +213,7 @@ class WindowDict(MutableMapping):
# But handle degenerate case.
if not within_history(rev, self):
raise Hi... | Fix AttributeError when deleting from WindowDict | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ setup(
"whitenoise>=5.2,<5.3",
"python-dotenv>=0.15,<0.16",
"hashids>=1.3,<1.4",
- "cryptography>=3.3.1,<4.0",
+ "cryptography>=36<37",
"tldextract>=2.2,<2.3",
... | Bump `cryptography` dependency version and use their new version scheme | py |
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_ssl.py
+++ b/cheroot/test/test_ssl.py
@@ -451,6 +451,7 @@ def test_http_over_https_error(
IS_GITHUB_ACTIONS_WORKFLOW
and IS_WINDOWS
and six.PY2
+ and ip_addr is ANY_INTE... | Expect HTTP fallback for IPv4 @ GH actions | py |
diff --git a/pdfwatermarker/watermark/watermark.py b/pdfwatermarker/watermark/watermark.py
index <HASH>..<HASH> 100644
--- a/pdfwatermarker/watermark/watermark.py
+++ b/pdfwatermarker/watermark/watermark.py
@@ -1,6 +1,7 @@
import os
import shutil
from datetime import datetime
+from time import sleep
from pdfwaterma... | Added success confirmation message to GUI class | py |
diff --git a/tests/test_task_collection.py b/tests/test_task_collection.py
index <HASH>..<HASH> 100644
--- a/tests/test_task_collection.py
+++ b/tests/test_task_collection.py
@@ -20,11 +20,14 @@
# Authors:
# Alvaro del Castillo <acs@bitergia.com>
+import datetime
+import dateutil
import logging
import sys
im... | [tests] Mock datetime when testing mediawiki This code mocks the value of the current datetime, which is used by the mediawiki backend. Thus, it allows to test the fetch_from_archive method of mediawiki | py |
diff --git a/tools/stdlib-diff.py b/tools/stdlib-diff.py
index <HASH>..<HASH> 100755
--- a/tools/stdlib-diff.py
+++ b/tools/stdlib-diff.py
@@ -87,8 +87,11 @@ def diff_member(
# buitins will fail if inspected
return None
+ if orig_code.file.endswith("collections_abc.py"):
+ return None
+
... | Skip diff for collections.abc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import scuba.version
-from distutils.core import setup
+from setuptools import setup
setup(
name = 'SCUBA', | Update setup.py to use setuptools Whichever boilerplate setup.py was taken from used distutils. Update it to use setuptools so installation works when running setup.py directly, as opposed to via `pip install`. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ LONG_DESCRIPTION = long_description.split('.. comment: split here\n\n')[1].strip
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME
# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
... | Preparing <I> release | py |
diff --git a/tools/vcrpy/vcr/stubs/aiohttp_stubs/__init__.py b/tools/vcrpy/vcr/stubs/aiohttp_stubs/__init__.py
index <HASH>..<HASH> 100644
--- a/tools/vcrpy/vcr/stubs/aiohttp_stubs/__init__.py
+++ b/tools/vcrpy/vcr/stubs/aiohttp_stubs/__init__.py
@@ -95,7 +95,11 @@ def play_responses(cassette, vcr_request):
# If w... | Fixing VCR redirection (#<I>) Using the location passed as part of the redirection response if it is an absolute URL. | py |
diff --git a/slack_log_handler/__init__.py b/slack_log_handler/__init__.py
index <HASH>..<HASH> 100644
--- a/slack_log_handler/__init__.py
+++ b/slack_log_handler/__init__.py
@@ -1,9 +1,19 @@
import json
import traceback
-from logging import Handler
+from logging import Handler, CRITICAL, ERROR, WARNING
from slack... | Set attachment color based on log level | py |
diff --git a/photutils/conftest.py b/photutils/conftest.py
index <HASH>..<HASH> 100644
--- a/photutils/conftest.py
+++ b/photutils/conftest.py
@@ -11,6 +11,7 @@ enable_deprecations_as_exceptions()
# Add scikit-image to test header information
try:
PYTEST_HEADER_MODULES['scikit-image'] = 'skimage'
+ PYTEST_HEA... | print astropy version at test header | py |
diff --git a/hydpy/auxs/validtools.py b/hydpy/auxs/validtools.py
index <HASH>..<HASH> 100644
--- a/hydpy/auxs/validtools.py
+++ b/hydpy/auxs/validtools.py
@@ -43,7 +43,7 @@ def test_equal_shape(**kwargs):
raise ValueError(
'The shapes of the following objects are not equal: %s.'
% ', ... | Additional fix for commit #<I>ff3f0. | py |
diff --git a/datalad_service/common/annex.py b/datalad_service/common/annex.py
index <HASH>..<HASH> 100644
--- a/datalad_service/common/annex.py
+++ b/datalad_service/common/annex.py
@@ -16,7 +16,7 @@ def filter_git_files(files):
def get_repo_files(dataset, branch=None):
# If we're on the right branch, use the ... | Another fix for slow get_files when requests are made for HEAD. | py |
diff --git a/falcon_auth/backends.py b/falcon_auth/backends.py
index <HASH>..<HASH> 100644
--- a/falcon_auth/backends.py
+++ b/falcon_auth/backends.py
@@ -276,7 +276,6 @@ class BasicAuthBackend(AuthBackend):
def _extract_credentials(self, req):
auth = req.get_header('Authorization')
- print("auth... | Don't print auth token This is a security concern | py |
diff --git a/src/amcrest/http.py b/src/amcrest/http.py
index <HASH>..<HASH> 100644
--- a/src/amcrest/http.py
+++ b/src/amcrest/http.py
@@ -43,10 +43,20 @@ class Http(System, Network, MotionDetection, Snapshot,
return '%s://%s:%s/cgi-bin/%s' % (self._protocol, self._host,
... | http: Add timeout for requests.get() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,10 @@ ENCODING = "utf8"
pkg_info = {}
+def need_pytest():
+ return set(["pytest", "test", "ptr"]).intersection(sys.argv)
+
+
with open(os.path.join(MODULE_NAME.lower(), "__version__.py")) as f:
exec(f.r... | Extract a function that gets pytest-runner requirement | py |
diff --git a/datastore/google/cloud/datastore/__init__.py b/datastore/google/cloud/datastore/__init__.py
index <HASH>..<HASH> 100644
--- a/datastore/google/cloud/datastore/__init__.py
+++ b/datastore/google/cloud/datastore/__init__.py
@@ -16,21 +16,14 @@
You'll typically use these to get started with the API:
-.. ... | Removing os.environ patching in doctest. It turns out Sphinx allows this outside of a sandbox. | py |
diff --git a/emirdrp/recipes/aiv/common.py b/emirdrp/recipes/aiv/common.py
index <HASH>..<HASH> 100644
--- a/emirdrp/recipes/aiv/common.py
+++ b/emirdrp/recipes/aiv/common.py
@@ -517,7 +517,7 @@ def char_slit(data, regions, centers, box_increase=3, slit_size_ratio=4.0):
oshape = shape_of_slices(r)
r... | Filter by shape ratio only if it's positive | py |
diff --git a/lggr/__init__.py b/lggr/__init__.py
index <HASH>..<HASH> 100644
--- a/lggr/__init__.py
+++ b/lggr/__init__.py
@@ -285,8 +285,10 @@ class Lggr():
continue
sinfo = traceback.extract_stack(f)
fname, lno, fnc, cc, i = inspect.getframeinfo(f, context=10)
- c... | Fixes indentation when printing stack traces. Prepends every line with a marker: '|' if just context, '>' if the calling line. | py |
diff --git a/test/test_client.py b/test/test_client.py
index <HASH>..<HASH> 100644
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -221,8 +221,14 @@ class TestClient(IntegrationTest):
self.assertFalse(c.secondaries)
c.pymongo_test.command('ismaster') # Auto-connect.
- self.assertEqual... | Fix test_init_disconnected. It failed when the replica set config contains hostnames that differ from the DB_IP environment variable that PyMongo's tests use. E.g. if DB_IP is "<I>" but the replica set is configured to use hostnames like "localhost:<I>", then test_init_disconnected failed because the tests' global "ho... | py |
diff --git a/mordred/mordred.py b/mordred/mordred.py
index <HASH>..<HASH> 100755
--- a/mordred/mordred.py
+++ b/mordred/mordred.py
@@ -189,7 +189,7 @@ class Mordred:
return gelk_backends + extra_backends
- def __get_repos_by_backend(self):
+ def _get_repos_by_backend(self):
#
# retu... | [mordred] Convert _get_repos_by_backend to protected method so we can use it in tests | py |
diff --git a/spyder/preferences/languageserver.py b/spyder/preferences/languageserver.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/languageserver.py
+++ b/spyder/preferences/languageserver.py
@@ -662,22 +662,15 @@ class LSPManagerConfigPage(GeneralConfigPage):
_("Enable linting"),
'... | Preferences: Remove link in Mccabe preference | py |
diff --git a/bcbio/pipeline/rnaseq.py b/bcbio/pipeline/rnaseq.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/rnaseq.py
+++ b/bcbio/pipeline/rnaseq.py
@@ -34,6 +34,8 @@ def run_rnaseq_variant_calling(data):
def run_rnaseq_joint_genotyping(*samples):
data = samples[0][0]
variantcaller = dd.get_variantcall... | Update rnaseq.py to not break if no variant caller is specified | py |
diff --git a/python/dllib/src/bigdl/dllib/nn/layer.py b/python/dllib/src/bigdl/dllib/nn/layer.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/nn/layer.py
+++ b/python/dllib/src/bigdl/dllib/nn/layer.py
@@ -782,6 +782,17 @@ class Model(Container):
callBigDlFunc(bigdl_type, "setStopGradient", se... | Add an API to get node from graph model with given name (#<I>) * get node from graph * add unit test * add Graph.node api in python | py |
diff --git a/angr/state_plugins/posix.py b/angr/state_plugins/posix.py
index <HASH>..<HASH> 100644
--- a/angr/state_plugins/posix.py
+++ b/angr/state_plugins/posix.py
@@ -239,7 +239,7 @@ class SimSystemPosix(SimStatePlugin):
simfile = self.state.fs.get(name)
if simfile is None:
if not wri... | Fix implementation of ALL_FILES_EXIST state option | py |
diff --git a/salt/pillar/git_pillar.py b/salt/pillar/git_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/git_pillar.py
+++ b/salt/pillar/git_pillar.py
@@ -312,8 +312,6 @@ def ext_pillar(minion_id,
if __opts__['pillar_roots'].get(branch, []) == [pillar_dir]:
return {}
- gitpil.update()
-
... | Remove update() in git pillar This causes workers to block when a large number of minions request pillar data. Full discussion in #<I>. Refs #<I> as well | py |
diff --git a/sqlserver/datadog_checks/sqlserver/sqlserver.py b/sqlserver/datadog_checks/sqlserver/sqlserver.py
index <HASH>..<HASH> 100644
--- a/sqlserver/datadog_checks/sqlserver/sqlserver.py
+++ b/sqlserver/datadog_checks/sqlserver/sqlserver.py
@@ -597,13 +597,10 @@ class SQLServer(AgentCheck):
try:
... | [SQLServver] Remove debug lines about connector string These could contain passwords | py |
diff --git a/knights/dj.py b/knights/dj.py
index <HASH>..<HASH> 100644
--- a/knights/dj.py
+++ b/knights/dj.py
@@ -16,15 +16,15 @@ class KnightsTemplater(BaseEngine):
super(KnightsTemplater, self).__init__(params)
- for path in params.get('DIRS', []):
- loader.add_path(path)
-
def fr... | Use built in template dirs list Add user to context | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,5 +26,9 @@ setup(
'console_scripts': [
'flaskdev = flask_appconfig.cli:main',
],
- }
+ },
+ classifiers=[
+ 'Programming Language :: Python :: 2',
+ 'Programming Langua... | Added 2/3 classifiers. | py |
diff --git a/bulbs/super_features/utils.py b/bulbs/super_features/utils.py
index <HASH>..<HASH> 100644
--- a/bulbs/super_features/utils.py
+++ b/bulbs/super_features/utils.py
@@ -19,11 +19,15 @@ def get_data_serializer(name):
def get_superfeature_model():
- model_name = getattr(settings, "BULBS_SUPERFEATURE_MOD... | get_model doesn't like app with the same name | py |
diff --git a/wandb/apis/public.py b/wandb/apis/public.py
index <HASH>..<HASH> 100644
--- a/wandb/apis/public.py
+++ b/wandb/apis/public.py
@@ -2320,6 +2320,8 @@ class Artifact(object):
raise ValueError('Project %s/%s does not contain artifact: "%s"' % (
self.entity, self.project, self.arti... | Correctly return artifact metadata in public API (#<I>) | py |
diff --git a/dipper/models/Genotype.py b/dipper/models/Genotype.py
index <HASH>..<HASH> 100644
--- a/dipper/models/Genotype.py
+++ b/dipper/models/Genotype.py
@@ -76,7 +76,7 @@ class Genotype():
'derives_from': 'RO:0001000',
'has_alternate_part': 'GENO:0000382',
'has_reference_part': 'GENO:00... | add proper id for sex_agnostic_part GENO relation | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -4586,7 +4586,7 @@ def mkdir(dir_path,
# to follow the principal of least surprise method.
makedirs_perms(directory, user, group, mode)
- return os.path.is... | Simplify return value to "True". It is fine to return True here because, in the event that the directory cannot be created, an exception can be raised anyway. | py |
diff --git a/selftest.py b/selftest.py
index <HASH>..<HASH> 100755
--- a/selftest.py
+++ b/selftest.py
@@ -39,7 +39,7 @@ def selftest():
print "Reading cookies from " + cookies
b = Bugzilla(url=url,cookies=cookies)
print "Reading product list"
- print b.products()
+ print b.getproducts()
print... | fix selftest since we changed the name of the products() method | py |
diff --git a/intranet/settings/base.py b/intranet/settings/base.py
index <HASH>..<HASH> 100644
--- a/intranet/settings/base.py
+++ b/intranet/settings/base.py
@@ -292,7 +292,8 @@ LOGGING = {
"filters": ["require_debug_false"],
"class": "logging.FileHandler",
"formatter": "access",... | don't open the log file until we need to, fixes travis | py |
diff --git a/contract_variable_quantity/models/contract_line.py b/contract_variable_quantity/models/contract_line.py
index <HASH>..<HASH> 100644
--- a/contract_variable_quantity/models/contract_line.py
+++ b/contract_variable_quantity/models/contract_line.py
@@ -12,9 +12,9 @@ class AccountAnalyticInvoiceLine(models.Mod... | [REF] Contract: invoice in prepare_invoice_line is optional | py |
diff --git a/gooey/gui/imageutil.py b/gooey/gui/imageutil.py
index <HASH>..<HASH> 100644
--- a/gooey/gui/imageutil.py
+++ b/gooey/gui/imageutil.py
@@ -20,9 +20,13 @@ def resizeImage(im, targetHeight):
def wrapBitmap(im, parent):
- bitmapData = wx.Bitmap.FromBufferRGBA(im.size[0], im.size[1], im.convert('RGBA... | Compatibility with legacy versions of Pillow Old versions of Pillow:Image don't support .tobytes(), so we use .tostring() instead. | py |
diff --git a/test/path_test.py b/test/path_test.py
index <HASH>..<HASH> 100644
--- a/test/path_test.py
+++ b/test/path_test.py
@@ -62,7 +62,7 @@ class PathTest(unittest.TestCase):
def test_which(self):
self.assertTrue(which('ls') is not None)
- self.assertEquals('/bin/ls', which('ls'))
+ s... | homebrew gnu coreutils' ls is actually in ...libexec/gnubin/ls | py |
diff --git a/gui.py b/gui.py
index <HASH>..<HASH> 100644
--- a/gui.py
+++ b/gui.py
@@ -434,7 +434,7 @@ class InputDialog(Widget):
m = Label(w - 70, 30, message)
self.inputText = TextInput(w - 120, 30)
self.conf = Button(50, 30, 'Ok')
- self.abort = Button(50, 30, 'Abort')
+ self... | Changed button text from Abort to Cancel. | py |
diff --git a/pyes/es.py b/pyes/es.py
index <HASH>..<HASH> 100644
--- a/pyes/es.py
+++ b/pyes/es.py
@@ -700,12 +700,14 @@ class ES(object):
path = self._make_path([index, doc_type])
return self._send_request('DELETE', path)
- def get(self, index, doc_type, id):
+ def get(self, index, doc_type, ... | ES.get() now accepts "fields" as well as other keyword arguments (eg "routing") | py |
diff --git a/tests/test_streams.py b/tests/test_streams.py
index <HASH>..<HASH> 100644
--- a/tests/test_streams.py
+++ b/tests/test_streams.py
@@ -214,6 +214,12 @@ def test_mux_single():
eq_(list(reference), list(estimate))
+@raises(RuntimeError)
+def test_mux_empty():
+
+ list(pescador.mux([], None, 1))
+
... | added runtime error test to empty mux | py |
diff --git a/gwpy/tests/test_plotter.py b/gwpy/tests/test_plotter.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_plotter.py
+++ b/gwpy/tests/test_plotter.py
@@ -1055,7 +1055,7 @@ class TestHtml(object):
fig = figure()
ax = fig.gca()
line = ax.plot([1, 2, 3, 4, 5])[0]
- data = zip... | tests: fixed bug in testing for python3 | py |
diff --git a/tensor2tensor/utils/trainer_utils.py b/tensor2tensor/utils/trainer_utils.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/trainer_utils.py
+++ b/tensor2tensor/utils/trainer_utils.py
@@ -703,8 +703,7 @@ def decode_from_file(estimator, filename):
tf.logging.info("Writing decodes into %s" % decode_... | trainer-utils: do not show input sentence in decoded file | py |
diff --git a/emailit/api.py b/emailit/api.py
index <HASH>..<HASH> 100644
--- a/emailit/api.py
+++ b/emailit/api.py
@@ -44,6 +44,7 @@ def construct_mail(recipients=None, context=None, template_base='emailit/email',
site = site or Site.objects.get_current()
context['site'] = site
+ context['sit... | include site name as pretty variable in context | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.