diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/fitsio/test.py b/fitsio/test.py
index <HASH>..<HASH> 100644
--- a/fitsio/test.py
+++ b/fitsio/test.py
@@ -341,8 +341,7 @@ class TestReadWrite(unittest.TestCase):
finally:
if os.path.exists(fname):
- pass
- #os.remove(fname)
+ os.remove(fn... | Remove temp files that weren't being removed | py |
diff --git a/python/lib/exif.py b/python/lib/exif.py
index <HASH>..<HASH> 100644
--- a/python/lib/exif.py
+++ b/python/lib/exif.py
@@ -31,7 +31,7 @@ def exif_datetime_fields():
"Image DateTimeOriginal",
"EXIF DateTimeDigitized",
"Image DateTimeDigitized",
- "EXIF Da... | fix: Typo in exif fields | py |
diff --git a/alchemyjsonschema/dictify.py b/alchemyjsonschema/dictify.py
index <HASH>..<HASH> 100644
--- a/alchemyjsonschema/dictify.py
+++ b/alchemyjsonschema/dictify.py
@@ -125,12 +125,12 @@ def normalize(ob, schema, convert=normalize_of, getter=dict.get, registry=normal
convert = partial(convert, registry=regis... | fix bug on relatipnship list like property | py |
diff --git a/click_repl/__init__.py b/click_repl/__init__.py
index <HASH>..<HASH> 100644
--- a/click_repl/__init__.py
+++ b/click_repl/__init__.py
@@ -66,7 +66,7 @@ def register_repl(group, name='repl'):
history = InMemoryHistory()
completer = ClickCompleter(group)
def get_command... | fixed the message prompt to be a unicode (would crash on Python <I>.x with an assertion error) | py |
diff --git a/iotilecore/iotile/core/hw/virtual/common_types.py b/iotilecore/iotile/core/hw/virtual/common_types.py
index <HASH>..<HASH> 100644
--- a/iotilecore/iotile/core/hw/virtual/common_types.py
+++ b/iotilecore/iotile/core/hw/virtual/common_types.py
@@ -101,6 +101,8 @@ def pack_rpc_response(response=None, exceptio... | Rebase on master and incorporate RPC busy response | py |
diff --git a/piexif/_common.py b/piexif/_common.py
index <HASH>..<HASH> 100644
--- a/piexif/_common.py
+++ b/piexif/_common.py
@@ -43,8 +43,9 @@ def read_exif_from_file(filename):
if head[:2] == b"\xff\xe1":
segment_data = f.read(length - 2)
- if segment_data[0:4] != b'Exif':
- ... | Change behaviour when detected APP1 segment is not EXIF. | py |
diff --git a/pyemma/msm/models/msm.py b/pyemma/msm/models/msm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/models/msm.py
+++ b/pyemma/msm/models/msm.py
@@ -181,7 +181,10 @@ class MSM(_Model):
@reversible.setter
def reversible(self, value):
- self._reversible = bool(value)
+ # allow to set i... | [msm] allow None in reversible setter to avoid derivation from P. Finally fixes #<I> ... | py |
diff --git a/pyrogram/connection/transport/tcp/tcp.py b/pyrogram/connection/transport/tcp/tcp.py
index <HASH>..<HASH> 100644
--- a/pyrogram/connection/transport/tcp/tcp.py
+++ b/pyrogram/connection/transport/tcp/tcp.py
@@ -18,6 +18,7 @@
import logging
import socket
+import ipaddress
try:
import socks
@@ -39... | Fix handling proxies with domain names | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,8 @@ setup(
extras_require={
'WEB': ['bottle'],
'SENSORS': ['py3sensors'],
- 'BATINFO': ['batinfo']
+ 'BATINFO': ['batinfo'],
+ 'SNMP': ['pysnmp']
},
packages=['g... | Add PySNMP as extras requirment | py |
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils.py
+++ b/pysat/tests/test_utils.py
@@ -902,14 +902,9 @@ class TestGenerateInstList(object):
"""Test that user info passes through to correct instruments."""
for inst in self.in... | STY: Restored unit test after removal testmodel2 | py |
diff --git a/gsh/stdin.py b/gsh/stdin.py
index <HASH>..<HASH> 100644
--- a/gsh/stdin.py
+++ b/gsh/stdin.py
@@ -235,7 +235,8 @@ class stdin_thread(Thread):
self.raw_input_wanted.clear()
def no_raw_input(self):
- interrupt_stdin_thread()
+ if not self.out_of_raw_input.isSet():
+ i... | No need to interrupt the stdin thread when not in raw_input() | py |
diff --git a/pyp2rpm/filters.py b/pyp2rpm/filters.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/filters.py
+++ b/pyp2rpm/filters.py
@@ -53,7 +53,7 @@ def package_to_path(package, module):
if package == module:
return "%{pypi_name}"
else:
- return module
+ return package.replace('-','_')
... | package_to_path function should return package (after all) with underscores, fixes #<I> | py |
diff --git a/modules/cij/runner.py b/modules/cij/runner.py
index <HASH>..<HASH> 100644
--- a/modules/cij/runner.py
+++ b/modules/cij/runner.py
@@ -353,10 +353,12 @@ def tcase_run(trun, tsuite, tcase):
bgn = time.time()
cmd = [
'bash', '-c',
- 'source cijoe.sh && '
... | mod/cij/runner: changed sourcing order | py |
diff --git a/script/lib/config.py b/script/lib/config.py
index <HASH>..<HASH> 100644
--- a/script/lib/config.py
+++ b/script/lib/config.py
@@ -9,7 +9,7 @@ import sys
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
'https://s3.amazonaws.com/github-janky-artifacts/libchromiumcontent'
LIBCHROMIUMCONTENT_COMM... | Upgrade libcc for Chrome <I> Linux key event fix | py |
diff --git a/authomatic/core.py b/authomatic/core.py
index <HASH>..<HASH> 100644
--- a/authomatic/core.py
+++ b/authomatic/core.py
@@ -406,6 +406,9 @@ class Session(object):
if not self._data:
self._data = self._get_data()
+ # Always return a dict, even if deserialization returned nothing... | Ensure deserialization of session data always returns non-None object. When deserializing invalid session data, such as an expired session, the `_get_data()` method sometimes returns None. This fix ensures that the `data` property always returns an empty dict instead of None in this and all cases, to avoid breaking su... | py |
diff --git a/src/pyshark/capture/capture.py b/src/pyshark/capture/capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/capture.py
+++ b/src/pyshark/capture/capture.py
@@ -104,7 +104,7 @@ class Capture(object):
def _set_tshark_process(self, packet_count=None, extra_params=[]):
"""
- ... | Now making sure tshark process terminated badly before raising a crash exception | py |
diff --git a/ladybug/__init__.py b/ladybug/__init__.py
index <HASH>..<HASH> 100644
--- a/ladybug/__init__.py
+++ b/ladybug/__init__.py
@@ -7,7 +7,7 @@ import sys
import importlib
import pkgutil
-__version__ = '0.1.0'
+__version__ = '0.2.0'
# find and import ladybug plugins
# this is a critical step to add add... | Update __init__.py This is just to sync the __version__ with the master branch. | py |
diff --git a/bandit/backends/base.py b/bandit/backends/base.py
index <HASH>..<HASH> 100644
--- a/bandit/backends/base.py
+++ b/bandit/backends/base.py
@@ -22,7 +22,8 @@ class HijackBackendMixin(object):
admins = getattr(settings, 'ADMINS', ())
server_email = getattr(settings, 'SERVER_EMAIL', 'root@loc... | added email white list setting BANDIT_WHITELIST | py |
diff --git a/yabt/buildcontext.py b/yabt/buildcontext.py
index <HASH>..<HASH> 100644
--- a/yabt/buildcontext.py
+++ b/yabt/buildcontext.py
@@ -287,7 +287,7 @@ class BuildContext:
# "failed to run" errors.
# see: https://github.com/resonai/ybt/issues/124
if isinstance(e... | check that stdout is not none | py |
diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/raster.py
+++ b/holoviews/element/raster.py
@@ -426,6 +426,28 @@ class RGB(Matrix):
If an alpha channel is supplied, the defined alpha_dimension
is automatically appended to this ... | Added load_image helper classmethod to the RGB element | py |
diff --git a/ella/newman/models.py b/ella/newman/models.py
index <HASH>..<HASH> 100644
--- a/ella/newman/models.py
+++ b/ella/newman/models.py
@@ -115,11 +115,18 @@ class CategoryUserRole(models.Model):
category = models.ManyToManyField(Category)
def __unicode__(self):
- return ugettext(u'User %(user... | Bug fixed -- occured when role was deleted via InlineAdmin. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ install_requires = [
'chardet==2.3.0',
'pyOpenSSL==0.14',
'pytz==2015.2',
- 'python-dateutil==2.4.1',
+ 'python-dateutil>=2.4.1',
'pandas==0.15.2',
'xlrd==0.9.3',
'Pillow==2.7... | python-dateutil>=<I> rather than ==<I> in setup.py files | py |
diff --git a/kafka/metrics/metrics.py b/kafka/metrics/metrics.py
index <HASH>..<HASH> 100644
--- a/kafka/metrics/metrics.py
+++ b/kafka/metrics/metrics.py
@@ -257,3 +257,5 @@ class Metrics(object):
"""Close this metrics repository."""
for reporter in self._reporters:
reporter.close()
+
+ ... | Clear the metrics dictionary on close. (#<I>) | py |
diff --git a/scanpy/tools/_rank_genes_groups.py b/scanpy/tools/_rank_genes_groups.py
index <HASH>..<HASH> 100644
--- a/scanpy/tools/_rank_genes_groups.py
+++ b/scanpy/tools/_rank_genes_groups.py
@@ -515,8 +515,7 @@ def rank_genes_groups(
>>> import scanpy as sc
>>> adata = sc.datasets.pbmc68k_reduced()
>... | Fix docstrings for rank_genes_groups (#<I>) Remove empty line which causes the example terminal commands to be displayed incorrectly. Also, three `>` are preprended to the comment. | py |
diff --git a/tests/test_modules/test_xmap/test_xmapdriverpart.py b/tests/test_modules/test_xmap/test_xmapdriverpart.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/test_xmap/test_xmapdriverpart.py
+++ b/tests/test_modules/test_xmap/test_xmapdriverpart.py
@@ -61,10 +61,6 @@ class TestXmap3DetectorDriverPart(Chil... | Updated tests to account for removed attributes | py |
diff --git a/lokingyql/contrib/opentable/binder.py b/lokingyql/contrib/opentable/binder.py
index <HASH>..<HASH> 100755
--- a/lokingyql/contrib/opentable/binder.py
+++ b/lokingyql/contrib/opentable/binder.py
@@ -131,3 +131,25 @@ class BinderKey(object):
"""
return self.etree
+class BinderPage(obje... | #<I> : Paging class added | py |
diff --git a/tastypie_hmacauth/authentication.py b/tastypie_hmacauth/authentication.py
index <HASH>..<HASH> 100644
--- a/tastypie_hmacauth/authentication.py
+++ b/tastypie_hmacauth/authentication.py
@@ -56,7 +56,7 @@ class HMACAuthentication(Authentication):
if 'HTTPS' in request.META['SERVER_PROTOCOL']:
... | assuming that when http host does not exists, then it a test case scenario | py |
diff --git a/gitlab/objects.py b/gitlab/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1837,6 +1837,18 @@ class ProjectMergeRequest(GitlabObject):
r = self.gitlab._raw_post(url, **kwargs)
raise_error_from_response(r, GitlabTodoError, [201, 304])
+ def t... | add time_stats to ProjectMergeRequest | py |
diff --git a/zipline/finance/risk/cumulative.py b/zipline/finance/risk/cumulative.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/risk/cumulative.py
+++ b/zipline/finance/risk/cumulative.py
@@ -159,13 +159,13 @@ algorithm_returns ({algo_count}) in range {start} : {end} on {dt}"
# caching the treasury rate... | MAINT: Use dt in risk update method instead of last return index. The current dt is already in scope in the update method, so use that instead of also reading it from the algorithm_returns index. | py |
diff --git a/niworkflows/utils/bids.py b/niworkflows/utils/bids.py
index <HASH>..<HASH> 100644
--- a/niworkflows/utils/bids.py
+++ b/niworkflows/utils/bids.py
@@ -319,6 +319,7 @@ def check_pipeline_version(cvers, data_desc):
>>> data = {"PipelineDescription": {"Version": "1.1.1rc5"}}
>>> desc_file = Path(tmpd... | tst: expected value from write_text() | py |
diff --git a/src/livestreamer_cli/main.py b/src/livestreamer_cli/main.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer_cli/main.py
+++ b/src/livestreamer_cli/main.py
@@ -788,12 +788,17 @@ def check_version():
latest_version = data.get("info").get("version")
cache.set("latest_version", latest_vers... | cli: Only print new version info every 6 hours. | py |
diff --git a/pyvista/core/filters.py b/pyvista/core/filters.py
index <HASH>..<HASH> 100644
--- a/pyvista/core/filters.py
+++ b/pyvista/core/filters.py
@@ -1664,7 +1664,8 @@ class DataSetFilters(object):
manifold_edges=True, inplace=False):
"""
Extracts edges from the surface of t... | Fix filters inheritence to allow class specific implementations/override | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,11 +89,6 @@ def cpp_flag(compiler):
'is needed!')
class build_ext(_build_ext):
- """
- A custom extension builder that finds the include directories for Eigen
- and HODLR before comp... | removing check for HODLR headers | py |
diff --git a/pycookiecheat/pycookiecheat.py b/pycookiecheat/pycookiecheat.py
index <HASH>..<HASH> 100755
--- a/pycookiecheat/pycookiecheat.py
+++ b/pycookiecheat/pycookiecheat.py
@@ -75,12 +75,7 @@ def chrome_cookies(url):
domain = urllib.parse.urlparse(url).netloc
domain_no_sub = '.'.join(domain.split('.')[-... | Remove error message / exit for cookie file not found. | py |
diff --git a/clay/core.py b/clay/core.py
index <HASH>..<HASH> 100644
--- a/clay/core.py
+++ b/clay/core.py
@@ -264,7 +264,7 @@ class Clay(object):
if real_ext == u'.html':
content = self._post_process(content)
return views.append([relpath_in, path_out, content])
- ... | filter non html files out of _index.html | py |
diff --git a/src/setup.py b/src/setup.py
index <HASH>..<HASH> 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-__version__ = '1.1.3'
+__version__ = '1.1.4'
with open('../README.md', 'r') as fh:
long_description = fh.read() | Updated version to <I> | py |
diff --git a/tests/core/test_import.py b/tests/core/test_import.py
index <HASH>..<HASH> 100644
--- a/tests/core/test_import.py
+++ b/tests/core/test_import.py
@@ -1,4 +1,4 @@
def test_import():
- import <MODULE_NAME>
+ import <MODULE_NAME> # noqa: F401 | silence flake8 error during module import test | py |
diff --git a/belpy/statements.py b/belpy/statements.py
index <HASH>..<HASH> 100644
--- a/belpy/statements.py
+++ b/belpy/statements.py
@@ -203,12 +203,12 @@ class Dephosphorylation(Statement):
self.mod = mod
self.mod_pos = mod_pos
- def monomers(self, model):
- phos = get_create_monomer(mo... | Updated monomers/assemble for Dephos statements | py |
diff --git a/SoftLayer/CLI/firewall/detail.py b/SoftLayer/CLI/firewall/detail.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/firewall/detail.py
+++ b/SoftLayer/CLI/firewall/detail.py
@@ -7,7 +7,7 @@ import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import firewall
from SoftLayer.CLI impor... | Do not fail if the source or destination subnet mask does not exist for ipv6 rules. | py |
diff --git a/streamcorpus_pipeline/_yaml_files_list.py b/streamcorpus_pipeline/_yaml_files_list.py
index <HASH>..<HASH> 100644
--- a/streamcorpus_pipeline/_yaml_files_list.py
+++ b/streamcorpus_pipeline/_yaml_files_list.py
@@ -319,7 +319,12 @@ class yaml_files_list(Configured):
## heuristically split the... | less aggressive use cleanse in yaml_file_list, because we do not want \xe9\x<I>\x<I>\xe6 to become xe9 x<I> x<I> xe6 | py |
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -163,6 +163,8 @@ class Plugin(object):
return os.path.join(self.sysroot, path)
def strip_sysroot(self, path):
+ if not self.use_sysroot():
+ ... | [Plugin] fix handling of symlinks in non-sysroot environments | py |
diff --git a/asyncpg/cluster.py b/asyncpg/cluster.py
index <HASH>..<HASH> 100644
--- a/asyncpg/cluster.py
+++ b/asyncpg/cluster.py
@@ -134,8 +134,9 @@ class Cluster:
self._data_dir))
if settings:
- extra_args = ['-o'] + ['--{}={}'.format(k, v)
- ... | cluster: Fix how settings args are passed to 'init' | py |
diff --git a/mcts/securitysuite/ssl.py b/mcts/securitysuite/ssl.py
index <HASH>..<HASH> 100644
--- a/mcts/securitysuite/ssl.py
+++ b/mcts/securitysuite/ssl.py
@@ -188,8 +188,8 @@ class nssversion(ExtraTest):
'2.2': {
'hgtag': 'mozilla-b2g37_v2_2',
'release_date:': '2015-06-08',
- ... | Final NSS version info update for <I> release | py |
diff --git a/src/mbed_cloud/connect/connect.py b/src/mbed_cloud/connect/connect.py
index <HASH>..<HASH> 100644
--- a/src/mbed_cloud/connect/connect.py
+++ b/src/mbed_cloud/connect/connect.py
@@ -22,6 +22,7 @@ import logging
import re
import threading
import uuid
+import warnings
from collections import defaultdic... | delete subscriptions by iterating connected devices | py |
diff --git a/configure.py b/configure.py
index <HASH>..<HASH> 100755
--- a/configure.py
+++ b/configure.py
@@ -253,12 +253,13 @@ if options.with_gtest:
path = options.with_gtest
gtest_all_incs = '-I%s -I%s' % (path, os.path.join(path, 'include'))
+ gtest_cflags = '-fvisibility=hidden ' + gtest_all_incs
... | build gtest with -fvisibility=hidden as well Fixes a warning on Mac. | py |
diff --git a/ltdconveyor/s3/presignedpost.py b/ltdconveyor/s3/presignedpost.py
index <HASH>..<HASH> 100644
--- a/ltdconveyor/s3/presignedpost.py
+++ b/ltdconveyor/s3/presignedpost.py
@@ -15,6 +15,7 @@ import logging
import requests
from .exceptions import S3Error
+from ..exceptions import ConveyorError
def pre... | Have upload_dir re-raise a ConveyorError This is easier to catch for this potentially common error case. | py |
diff --git a/fcn/data.py b/fcn/data.py
index <HASH>..<HASH> 100644
--- a/fcn/data.py
+++ b/fcn/data.py
@@ -34,7 +34,7 @@ def cached_download(url, path, md5=None, quiet=False):
def check_md5(path, md5, quiet=False):
if not quiet:
- print('Checking md5 [{}] of file [{}]'.format(md5, path))
+ ... | Enhance printing of md5 checking | py |
diff --git a/django_mako_plus/controller/router.py b/django_mako_plus/controller/router.py
index <HASH>..<HASH> 100755
--- a/django_mako_plus/controller/router.py
+++ b/django_mako_plus/controller/router.py
@@ -40,6 +40,9 @@ def route_request(request):
# output the variables so the programmer can debug where this ... | fixed a small bug in todays earlier release | py |
diff --git a/bokeh/plotting_helpers.py b/bokeh/plotting_helpers.py
index <HASH>..<HASH> 100644
--- a/bokeh/plotting_helpers.py
+++ b/bokeh/plotting_helpers.py
@@ -305,8 +305,8 @@ def _new_xy_plot(x_range=None, y_range=None, plot_width=None, plot_height=None,
# Remove pan/zoom tools in case of categorical axes
... | Decide based on x and y range, not axes (which are optional) | py |
diff --git a/h2o-py/h2o/assembly.py b/h2o-py/h2o/assembly.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/assembly.py
+++ b/h2o-py/h2o/assembly.py
@@ -198,6 +198,23 @@ class H2OAssembly(object):
@property
def names(self):
+ """
+ :examples:
+
+ >>> iris = h2o.load_dataset("iris")
+ ... | PUBDEV-<I>: added 'names' example | py |
diff --git a/test/test_failover_integration.py b/test/test_failover_integration.py
index <HASH>..<HASH> 100644
--- a/test/test_failover_integration.py
+++ b/test/test_failover_integration.py
@@ -173,7 +173,8 @@ class TestFailover(KafkaIntegrationTestCase):
def _send_random_messages(self, producer, topic, partition... | Encode random_message strings to bytes in test_failover_integration | py |
diff --git a/setupLiSE.py b/setupLiSE.py
index <HASH>..<HASH> 100644
--- a/setupLiSE.py
+++ b/setupLiSE.py
@@ -25,6 +25,6 @@ setup(
'LiSE': ['sqlite.json']
},
install_requires=[
- "gorm>=0.6.0",
+ "gorm>=0.7.0",
],
) | require a gorm that caches | py |
diff --git a/src/python/grpcio/grpc/framework/core/_end.py b/src/python/grpcio/grpc/framework/core/_end.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/grpc/framework/core/_end.py
+++ b/src/python/grpcio/grpc/framework/core/_end.py
@@ -203,11 +203,11 @@ class _End(End):
def accept_ticket(self, ticket):
"... | Fix grace period bug in _end.accept_ticket Tickets should not be ignored if the end is in a grace period; rather they should be ignored if they are for an unrecognized (likely new) operation and the end is in a grace period. | py |
diff --git a/qiskit/_jobprocessor.py b/qiskit/_jobprocessor.py
index <HASH>..<HASH> 100644
--- a/qiskit/_jobprocessor.py
+++ b/qiskit/_jobprocessor.py
@@ -103,7 +103,6 @@ class JobProcessor:
future.qobj)
with self.lock:
logger.debug("Have a Result: %s", pprint.pformat(... | Stop JobProcessor from modifying input qobj (#<I>) | py |
diff --git a/salt/loader.py b/salt/loader.py
index <HASH>..<HASH> 100644
--- a/salt/loader.py
+++ b/salt/loader.py
@@ -1630,8 +1630,8 @@ class LazyLoader(salt.utils.lazy.LazyDict):
# if the modulename isn't in the whitelist, don't bother
if self.whitelist and mod_name not in self.whitelist:
... | Change key -> function to make log message more clear Leaving it as "key" would potentially confuse people into thinking there was a problem with an SSH/SSL/TLS/etc. key. | py |
diff --git a/flake8_author.py b/flake8_author.py
index <HASH>..<HASH> 100644
--- a/flake8_author.py
+++ b/flake8_author.py
@@ -30,19 +30,24 @@ class Checker(object):
@classmethod
def add_options(cls, parser):
+ extra_kwargs = {}
+ if hasattr(parser, 'config_options'): # flake8 < 3.0
+ ... | Pass parse_from_config=True for flake8 <I>+ Otherwise, the options won't be read from the configuration file. This case still needs test coverage. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
],
license="BSD",
install_requires=[
- 'future', 'geonode==3.0',
+ 'future', 'geonode>=3.0',
'Faker>=0.8.4',
'cherrypy==11.0.0',
'cheroot==5.8.3', | accept geonode <I> or higher as dependency | py |
diff --git a/pyramid_restful/api.py b/pyramid_restful/api.py
index <HASH>..<HASH> 100644
--- a/pyramid_restful/api.py
+++ b/pyramid_restful/api.py
@@ -78,7 +78,10 @@ class ApiFactory(dict):
})
else:
origin = self.cors_options.get('access_control_allow_origin', '*')
+ ... | #<I> adding access control expose headers to control what is available on the frontend | py |
diff --git a/openquake/server/tests/views_test.py b/openquake/server/tests/views_test.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/views_test.py
+++ b/openquake/server/tests/views_test.py
@@ -115,6 +115,10 @@ class EngineServerTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
+ ... | Skipped webui tests on Jenkins [skip CI] | py |
diff --git a/geoviews/element/geo.py b/geoviews/element/geo.py
index <HASH>..<HASH> 100644
--- a/geoviews/element/geo.py
+++ b/geoviews/element/geo.py
@@ -145,6 +145,10 @@ class WMTS(_GeoFeature):
if 'crs' not in params:
params['crs'] = ccrs.GOOGLE_MERCATOR
elif not is... | Fixed support multiple sources on WMTS Element | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,8 +14,8 @@ packages = [
]
requires = [
- 'skosprovider',
- 'requests',
+ 'skosprovider>=0.5.0',
+ 'requests>=2.3.0',
'rdflib'
] | Add some minimum versions. We need to use at least requests version <I> to be able to catch the connection errors. | py |
diff --git a/abilian/core/sqlalchemy.py b/abilian/core/sqlalchemy.py
index <HASH>..<HASH> 100644
--- a/abilian/core/sqlalchemy.py
+++ b/abilian/core/sqlalchemy.py
@@ -151,7 +151,7 @@ class JSONUniqueListType(JSON):
if value is not None:
value = sorted(set(value))
- return JSON.process_bind_param(value,... | fix missing param in call of supermethod | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup(
keywords = "genome ortholog synteny i-ADHoRe",
platforms = "Posix; MacOS X",
url = "https://github.com/widdowquinn/pyADHoRe", # project home page, if any
- download_url = "",
+ down... | Added release/download location to setup.py | py |
diff --git a/pymc3/tests/test_stats.py b/pymc3/tests/test_stats.py
index <HASH>..<HASH> 100644
--- a/pymc3/tests/test_stats.py
+++ b/pymc3/tests/test_stats.py
@@ -13,6 +13,7 @@ import pymc3.stats as pmstats
from numpy.random import random, normal
from numpy.testing import assert_equal, assert_almost_equal, assert_arr... | Copied identical models in test_compare | py |
diff --git a/codeanalyzer.py b/codeanalyzer.py
index <HASH>..<HASH> 100644
--- a/codeanalyzer.py
+++ b/codeanalyzer.py
@@ -403,6 +403,22 @@ class CodeAnalyzer(object):
return ret_val
+ def get_tmp_register_expr(self, register_name, register_size, mode="post"):
+ """Return a smt bit vector that re... | Overall improvements to step_by_step_taint script. | py |
diff --git a/irc/buffer.py b/irc/buffer.py
index <HASH>..<HASH> 100644
--- a/irc/buffer.py
+++ b/irc/buffer.py
@@ -82,3 +82,16 @@ class DecodingLineBuffer(LineBuffer):
def lines(self):
return (line.decode(self.encoding, self.errors)
for line in super(DecodingLineBuffer, self).lines())
+
+clas... | Adding LenientDecodingLineBuffer (for consideration). | py |
diff --git a/src/s2repoze/plugins/sp.py b/src/s2repoze/plugins/sp.py
index <HASH>..<HASH> 100644
--- a/src/s2repoze/plugins/sp.py
+++ b/src/s2repoze/plugins/sp.py
@@ -267,10 +267,10 @@ class SAML2Plugin(FormPluginBase):
#### IIdentifier ####
def identify(self, environ):
- self.log = environ.g... | Some times CONTENT_LENGTH are given as '' | py |
diff --git a/actstream/registry.py b/actstream/registry.py
index <HASH>..<HASH> 100644
--- a/actstream/registry.py
+++ b/actstream/registry.py
@@ -12,12 +12,21 @@ from django.utils.six import string_types
from actstream.compat import generic
+class RegistrationError(Exception):
+ pass
+
+
def setup_generic_rel... | I’m super tired of having this same issue raised in github over and over again. thanks @michaeljones fixes #<I> | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100644
--- a/main.py
+++ b/main.py
@@ -1,22 +1,18 @@
from multiprocessing import freeze_support
+from ELiDE.app import ELiDEApp
import sys
import os
wd = os.getcwd()
-sys.path.extend([wd + '/LiSE', wd + '/ELiDE', wd + '/../gorm'])
-from ELiDE.app import ELiDEApp
-... | Make main.py more useful for packaging | py |
diff --git a/src/rammbock/Decoder.py b/src/rammbock/Decoder.py
index <HASH>..<HASH> 100644
--- a/src/rammbock/Decoder.py
+++ b/src/rammbock/Decoder.py
@@ -1,12 +1,20 @@
def string2object(message, data):
_get_headers(message, data)
+ _get_information_elements(message,data)
def _get_headers(message, data):
... | some skeleton sketched for gettin ies | py |
diff --git a/BarkTracker/bin/BarkTracker.py b/BarkTracker/bin/BarkTracker.py
index <HASH>..<HASH> 100644
--- a/BarkTracker/bin/BarkTracker.py
+++ b/BarkTracker/bin/BarkTracker.py
@@ -2,14 +2,14 @@ import numpy
import pyaudio
import analyse
-pyaud = pyaudio.pyAudio()
+pyaud = pyaudio.PyAudio()
#open input stream ... | This sample code works!! It seems to detect us talking :D | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ with open("README.rst", "r") as fh:
setuptools.setup(
name="parsenvy",
- version="2.0.5",
+ version="2.0.7",
author="Nik Kantar",
author_email="nik@nkantar.com",
description="Enviously... | Fix bad version in setup.py | py |
diff --git a/pypot/server/rest.py b/pypot/server/rest.py
index <HASH>..<HASH> 100644
--- a/pypot/server/rest.py
+++ b/pypot/server/rest.py
@@ -116,6 +116,7 @@ class RESTRobot(object):
def _set_register_value(self, object, register, value):
o = getattr(self.robot, object)
+ getattr(o, register) #... | feat(rest): raising a error on setting a value to an unknown register | py |
diff --git a/src/txkube/_model.py b/src/txkube/_model.py
index <HASH>..<HASH> 100644
--- a/src/txkube/_model.py
+++ b/src/txkube/_model.py
@@ -163,6 +163,10 @@ def remove(value):
class _List(object):
+ def __invariant__(self):
+ return required_unique(self.items, object_sort_key)
+
+
def item_by_nam... | Here is the invariant that prevents duplicates. | py |
diff --git a/oauth2client/appengine.py b/oauth2client/appengine.py
index <HASH>..<HASH> 100644
--- a/oauth2client/appengine.py
+++ b/oauth2client/appengine.py
@@ -192,7 +192,6 @@ class CredentialsProperty(db.Property):
# For reading from datastore.
def make_value_from_datastore(self, value):
- logging.info("... | Fixes issue #<I>. | py |
diff --git a/cmsplugin_cascade/widgets.py b/cmsplugin_cascade/widgets.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/widgets.py
+++ b/cmsplugin_cascade/widgets.py
@@ -103,7 +103,7 @@ def _compile_validation_pattern(widget, units):
raise ValidationError('{0} is not a valid unit for CascadingSizeFiel... | CSS does not allow space between value and units | py |
diff --git a/bitcoin/rpc.py b/bitcoin/rpc.py
index <HASH>..<HASH> 100644
--- a/bitcoin/rpc.py
+++ b/bitcoin/rpc.py
@@ -174,7 +174,7 @@ class Proxy(object):
'code' in response['error'] and response['error']['code'] or -1,
'message' in response['error'] and response['er... | Some JSON-RPC commands which have no return type set ‘response’ to None, and that is okay. | py |
diff --git a/devassistant/assistants/yaml_assistant.py b/devassistant/assistants/yaml_assistant.py
index <HASH>..<HASH> 100644
--- a/devassistant/assistants/yaml_assistant.py
+++ b/devassistant/assistants/yaml_assistant.py
@@ -62,6 +62,10 @@ class YamlAssistant(assistant_base.AssistantBase):
self._pre_run = va... | Add a convenience method to make sure that assistant is fully loaded | py |
diff --git a/vyked/bus.py b/vyked/bus.py
index <HASH>..<HASH> 100644
--- a/vyked/bus.py
+++ b/vyked/bus.py
@@ -251,7 +251,7 @@ class Bus:
if self._http_host.is_for_me(query_dict['app'], query_dict['service'], query_dict['version']):
return func(*args, **kwargs)
else:
- ... | Returning error code <I> on wrongly routed request | py |
diff --git a/aikif/toolbox/html_tools.py b/aikif/toolbox/html_tools.py
index <HASH>..<HASH> 100644
--- a/aikif/toolbox/html_tools.py
+++ b/aikif/toolbox/html_tools.py
@@ -3,21 +3,21 @@
import os
import sys
-import aikif.toolbox.network_tools as mod_net
from bs4 import BeautifulSoup
def TEST():
print('html ... | html_tools doesnt need to do the fetch, works on str instead | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -420,11 +420,15 @@ class BaseCase(unittest.TestCase):
def go_back(self):
self.__last_page_load_url = None
... | Fix a Safari bug with forward and backward page navigation | py |
diff --git a/code/editor.py b/code/editor.py
index <HASH>..<HASH> 100755
--- a/code/editor.py
+++ b/code/editor.py
@@ -27,9 +27,11 @@ options are:
import getopt
import os
import sys
+import urllib2
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import Qt
+from PyQt4.QtNetwork import QNetworkProxy
from phot... | Now sets network proxy. If running on a machine with an http proxy set (e.g. behind a firewall) the editor uses urllib2 to get deatils of the proxy and then sets the QtNetwork proxy. | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -15,5 +15,6 @@ INSTALLED_APPS = [
'tests'
]
+EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
ROOT_URLCONF = 'tests.test_urls' | Added `EMAIL_BACKEND` test setting. | py |
diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_link.py
+++ b/MAVProxy/modules/mavproxy_link.py
@@ -49,7 +49,7 @@ class LinkModule(mp_module.MPModule):
'dataratelogging (DLSTATE)',
... | link: add tab expansion of alllinks to COMMAND level | py |
diff --git a/bika/lims/browser/worksheet/worksheets.py b/bika/lims/browser/worksheet/worksheets.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/worksheet/worksheets.py
+++ b/bika/lims/browser/worksheet/worksheets.py
@@ -27,7 +27,7 @@ class WorksheetsView(BikaListingView):
implements(IFolderContentsView, I... | worksheetfolder.pt to worksheets.pt | py |
diff --git a/bugwarrior/command.py b/bugwarrior/command.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/command.py
+++ b/bugwarrior/command.py
@@ -4,6 +4,7 @@ from twiggy import log
from lockfile import LockTimeout
from lockfile.pidlockfile import PIDLockFile
+import twiggy
import getpass
import keyring
import c... | Setup logging before we check the config. ..so we can log errors about the config if it doesn't exist at all. | py |
diff --git a/authomatic/providers/oauth2.py b/authomatic/providers/oauth2.py
index <HASH>..<HASH> 100644
--- a/authomatic/providers/oauth2.py
+++ b/authomatic/providers/oauth2.py
@@ -869,6 +869,14 @@ class Facebook(OAuth2):
return True
+ def access(self, url, params=None, **kwargs):
+ if params i... | Explicitly request FB fields. | py |
diff --git a/lptest.py b/lptest.py
index <HASH>..<HASH> 100644
--- a/lptest.py
+++ b/lptest.py
@@ -25,16 +25,20 @@ import pytest
import listparser.dates
try:
+ # Python 2
import BaseHTTPServer
import SimpleHTTPServer
except ImportError:
+ # Python 3
import http.server
BaseHTTPServer = htt... | Add comments to document which Python versions the imports are intended for | py |
diff --git a/libaaron/aio.py b/libaaron/aio.py
index <HASH>..<HASH> 100644
--- a/libaaron/aio.py
+++ b/libaaron/aio.py
@@ -1,10 +1,8 @@
import sys
from asyncio import *
-
proc = create_subprocess_exec
-major, minor, *_ = sys.version_info
-if (major, minor) < (3, 7):
+if sys.version_info < (3, 7, 0):
def run... | not sure why I wrote it the original way | py |
diff --git a/katcp/client.py b/katcp/client.py
index <HASH>..<HASH> 100644
--- a/katcp/client.py
+++ b/katcp/client.py
@@ -357,23 +357,27 @@ class DeviceClient(object):
self._running.set()
while self._running.isSet():
- if self.is_connected():
+ # this is equivalent to self.is_... | Fix bug where self._sock could become None while select and recv were being called on it (this was triggered if, for example, a .disconnect was called while waiting on a select). git-svn-id: <URL> | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -1,4 +1,5 @@
-from fabric.api import run, env, cd
+# -*- coding: utf-8 -*-
+from fabric.api import cd, env, run, settings
env.user = 'ubuntu'
env.tsuru_path = '/home/ubuntu/.go/src/github.com/timeredbull/tsuru'
@@ ... | fabfile: warning instead of fail if webserverd or collector is not running | py |
diff --git a/multiqc/modules/qualimap/QM_RNASeq.py b/multiqc/modules/qualimap/QM_RNASeq.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/qualimap/QM_RNASeq.py
+++ b/multiqc/modules/qualimap/QM_RNASeq.py
@@ -127,7 +127,7 @@ def parse_reports(self):
'id': 'qualimap_gene_coverage_profile',
... | Change Transcript Profile units to percent instead of bp. Thanks to Tim Slidel for pointing this out. | py |
diff --git a/pylint_plugin.py b/pylint_plugin.py
index <HASH>..<HASH> 100644
--- a/pylint_plugin.py
+++ b/pylint_plugin.py
@@ -1,4 +1,6 @@
-from collections import Callable
+"""Plugin to disable certain messages for test modules"""
+
+from collections import Callable # pylint:disable=no-name-in-module
from pylint.l... | pylint_plugin refactoring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ setup(
author_email='dev@aaren.me',
license='BSD 2-Clause',
url='http://github.com/aaren/notedown',
- install_requires=['ipython[nbconvert] >= 3.0', 'pandoc-attributes'],
+ install_requires=... | Add 'six' to the install requirements | py |
diff --git a/salt/output.py b/salt/output.py
index <HASH>..<HASH> 100644
--- a/salt/output.py
+++ b/salt/output.py
@@ -138,7 +138,7 @@ class HighStateOutputter(Outputter):
if kwargs.get('state_output', 'full').lower() == 'terse':
# Print this chunk in a terse way and contin... | Add a space to terse output | py |
diff --git a/asl/application/initializers/__init__.py b/asl/application/initializers/__init__.py
index <HASH>..<HASH> 100644
--- a/asl/application/initializers/__init__.py
+++ b/asl/application/initializers/__init__.py
@@ -16,3 +16,4 @@ from .database_initializer import DatabaseInitializer
from .application_initialize... | Library - initializer is called. | py |
diff --git a/logagg/formatters.py b/logagg/formatters.py
index <HASH>..<HASH> 100644
--- a/logagg/formatters.py
+++ b/logagg/formatters.py
@@ -38,7 +38,7 @@ def nginx_access(line):
u'status': u'200',
u'timestamp': '2018-01-05T09:31:39.201000',
u'upstream_response_time': 0.0}... | added doctest for new nginx_access_event | py |
diff --git a/jnrbase/git.py b/jnrbase/git.py
index <HASH>..<HASH> 100644
--- a/jnrbase/git.py
+++ b/jnrbase/git.py
@@ -36,14 +36,13 @@ def find_tag(matcher='v[0-9]*', strict=True, git_dir='.'):
.. _Semantic Version: http://semver.org/
"""
+ command = 'git describe --abbrev=8 --dirty'.split()
with ch... | Reduce duplication in find_tag commands | py |
diff --git a/zipline/pipeline/factors/technical.py b/zipline/pipeline/factors/technical.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/factors/technical.py
+++ b/zipline/pipeline/factors/technical.py
@@ -156,7 +156,7 @@ class AverageDollarVolume(CustomFactor):
inputs = [USEquityPricing.close, USEquityPricin... | BUG: Correct AverageDollarVolume NaN handling `AverageDollarVolume` used `nanmean`, which discards NaNs before averaging, giving an ADV which is too high for any equities that have any NaNs. Changing the method to `nansum` divided by window length so that the denominator is the same no matter whether there are NaNs o... | py |
diff --git a/indra/assemblers/cyjs_assembler.py b/indra/assemblers/cyjs_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/cyjs_assembler.py
+++ b/indra/assemblers/cyjs_assembler.py
@@ -306,11 +306,11 @@ class CyJSAssembler(object):
edge = [e for e in self._edges if e['data']['id'] == val][0]
... | Only append edges if they do not already exist - Introduced a bug in previous commit which led to edges being re-appended each time they were accessed. Escaped visual inspection likely because cytoscape only draws elements with unique ids. - Fixed by only appending edge if it doesn't match any edges already in the... | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.