diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/dateutils.py b/dateutils.py
index <HASH>..<HASH> 100644
--- a/dateutils.py
+++ b/dateutils.py
@@ -115,7 +115,11 @@ def convert_datecvs_to_datestruct(datecvs):
try:
# here we have to use '$' + 'Date...' here, otherwise the CVS
# commit would erase this time format to put commit date:
... | Support for CVS $Id as input to convert_datecvs_to_datestruct(..). | py |
diff --git a/lib/drizzlepac/tweakreg.py b/lib/drizzlepac/tweakreg.py
index <HASH>..<HASH> 100644
--- a/lib/drizzlepac/tweakreg.py
+++ b/lib/drizzlepac/tweakreg.py
@@ -675,7 +675,7 @@ def _overlap_matrix(images):
for i in range(nimg):
for j in range(i+1,nimg):
p = images[i].skyline.intersectio... | Spherical polygon area may be negative (depending on polygon's orientation). Because area is used to sort images, we should be using absolute value of the polygon's area. git-svn-id: <URL> | py |
diff --git a/molo/profiles/models.py b/molo/profiles/models.py
index <HASH>..<HASH> 100644
--- a/molo/profiles/models.py
+++ b/molo/profiles/models.py
@@ -3,12 +3,12 @@ from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import ... | Fix order of imports in models.py | py |
diff --git a/tests/unit/modules/test_file.py b/tests/unit/modules/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_file.py
+++ b/tests/unit/modules/test_file.py
@@ -3259,7 +3259,9 @@ class FileBasicsTestCase(TestCase, LoaderModuleMockMixin):
},
):
exp... | running pre-commit black manually. | py |
diff --git a/dedal/site.py b/dedal/site.py
index <HASH>..<HASH> 100644
--- a/dedal/site.py
+++ b/dedal/site.py
@@ -44,14 +44,14 @@ class Dedal(object):
@property
def urls(self):
- return ([
+ return [
url(
ACTIONS_RE[action],
getattr(self, action)... | moved namespace from patterns list to include For <I> compatibility. | py |
diff --git a/ants/viz/plot.py b/ants/viz/plot.py
index <HASH>..<HASH> 100644
--- a/ants/viz/plot.py
+++ b/ants/viz/plot.py
@@ -2060,6 +2060,8 @@ def plot(
cmap="Greys_r",
overlay_cmap="turbo",
overlay_alpha=0.9,
+ vminol=None,
+ vmaxol=None,
cbar=False,
cbar_length=0.8,
cbar_dx=0.0,
... | Allow setting vminol and vmaxol for overlays in plot | py |
diff --git a/src/provenance.py b/src/provenance.py
index <HASH>..<HASH> 100644
--- a/src/provenance.py
+++ b/src/provenance.py
@@ -26,7 +26,7 @@ def get_version(module):
# Check explicitly declared module version
try:
- return getattr(module, 'version', '__version__', 'VERSION', '__VERSION__')
+ ... | Change the order of checking the version of a module. | py |
diff --git a/xblock/problem.py b/xblock/problem.py
index <HASH>..<HASH> 100644
--- a/xblock/problem.py
+++ b/xblock/problem.py
@@ -318,12 +318,17 @@ class AttemptsScoreboardBlock(XBlock):
@XBlock.view("student_view")
def student_view(self, context):
# Get the attempts for all problems in my parent.
-... | Need to check if the parent even exists before asking for it. | py |
diff --git a/bin/diversity.py b/bin/diversity.py
index <HASH>..<HASH> 100755
--- a/bin/diversity.py
+++ b/bin/diversity.py
@@ -134,10 +134,10 @@ def write_diversity_metrics(data, sample_ids, fp=None):
with open(fp, 'w') as outf:
out = csv.writer(outf, delimiter='\t')
- out.writerow(['Sample I... | Fixes the --save_calculations option. Now prints out all metrics in a single column with the second column being group membership | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -998,8 +998,8 @@ class SegmentDefMapTable(metaio.Table):
tableName = "segment_def_map:table"
validcolumns = {
"creator_db": "int_4s",
- "process_id": "ilw... | Fix typos on a few column types. | py |
diff --git a/udiskie/mount.py b/udiskie/mount.py
index <HASH>..<HASH> 100644
--- a/udiskie/mount.py
+++ b/udiskie/mount.py
@@ -633,7 +633,7 @@ class DeviceActions(object):
'forget_password': mounter.forget_password,
})
- def detect(self, root_device=''):
+ def detect(self, root_device='/')... | Slightly simplify DeviceActions.detect() | py |
diff --git a/devassistant/settings.py b/devassistant/settings.py
index <HASH>..<HASH> 100644
--- a/devassistant/settings.py
+++ b/devassistant/settings.py
@@ -41,9 +41,14 @@ if 'DEVASSISTANT_NO_DEFAULT_PATH' not in os.environ:
DATA_DIRECTORIES = [os.path.expanduser('~/.devassistant'),
'/us... | Isolate UNIX specific code in settings.py (closes #<I>) | py |
diff --git a/docker/zap-api-scan.py b/docker/zap-api-scan.py
index <HASH>..<HASH> 100755
--- a/docker/zap-api-scan.py
+++ b/docker/zap-api-scan.py
@@ -356,6 +356,7 @@ def main(argv):
if len(urls) > 0:
# Choose the first one - will be striping off the path below
... | Log target in Docker API scans Change zap-api-scan.py to log the target when obtained from ZAP (after importing from file) and when normalising it (strip the path component), to help know what target is the script really going to use. | py |
diff --git a/luminoso_api/client.py b/luminoso_api/client.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/client.py
+++ b/luminoso_api/client.py
@@ -65,8 +65,8 @@ class LuminosoClient(object):
def __repr__(self):
return '<LuminosoClient for %s>' % self.url
- @staticmethod
- def connect(url='/aut... | Changing connect() from staticmethod to classmethod. Primarily so that LuminosoClient can more easily be subclassed, in cases where users want to write their own variations on the client. | py |
diff --git a/gspread/client.py b/gspread/client.py
index <HASH>..<HASH> 100644
--- a/gspread/client.py
+++ b/gspread/client.py
@@ -374,9 +374,11 @@ class Client(object):
'sendNotificationEmails': notify,
'emailMessage': email_message
}
+
+ headers = {'Content-Type': 'ap... | Fix error when inserting permissions. There was an error that the request to insert permissions defaulted to form type, I changed it to be 'application/json' which is accepted by Google. | py |
diff --git a/src/kba/pipeline/_local_storage.py b/src/kba/pipeline/_local_storage.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_local_storage.py
+++ b/src/kba/pipeline/_local_storage.py
@@ -7,11 +7,16 @@ This software is released under an MIT/X11 open source license.
Copyright 2012 Diffeo, Inc.
'''
import o... | catching rename failures and logging more info | py |
diff --git a/pescador/mux.py b/pescador/mux.py
index <HASH>..<HASH> 100644
--- a/pescador/mux.py
+++ b/pescador/mux.py
@@ -395,13 +395,8 @@ class BaseMux(core.Streamer):
@property
def n_streams(self):
- """Return the number of streamers. Will fail if it's an iterable,
- in which case just retu... | remove weird check in n_streams that is actually unnecessary | py |
diff --git a/GCR/composite.py b/GCR/composite.py
index <HASH>..<HASH> 100644
--- a/GCR/composite.py
+++ b/GCR/composite.py
@@ -389,11 +389,8 @@ class CompositeCatalog(BaseGenericCatalog):
return getattr(self.main, name)
def _get_quantity_info_dict(self, quantity, default=None):
- quantity = self.... | simplify _get_quantity_info_dict | py |
diff --git a/examples/speaker_text_to_speech.py b/examples/speaker_text_to_speech.py
index <HASH>..<HASH> 100644
--- a/examples/speaker_text_to_speech.py
+++ b/examples/speaker_text_to_speech.py
@@ -5,13 +5,13 @@
# passed in the request. When the service responds with the synthesized
# audio, the pyaudio would play i... | Import the correct class in speaker_text_to_speech example | py |
diff --git a/tests/parser/types/test_node_types.py b/tests/parser/types/test_node_types.py
index <HASH>..<HASH> 100644
--- a/tests/parser/types/test_node_types.py
+++ b/tests/parser/types/test_node_types.py
@@ -60,8 +60,8 @@ def test_canonicalize_type():
def test_get_size_of_type():
assert get_size_of_type(Base... | fix tests for get_size_of(bytes) | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -729,8 +729,7 @@ _OS_FAMILY_MAP = {
'ALT': 'RedHat',
'Trisquel': 'Debian',
'GCEL': 'Debian',
- 'Linaro': 'Debian',
- 'Pidora': 'RedHat'
+ 'Linaro': 'Debian'
... | Removed unnecessary os_family mappings for pidora | py |
diff --git a/dfvfs/helpers/command_line.py b/dfvfs/helpers/command_line.py
index <HASH>..<HASH> 100644
--- a/dfvfs/helpers/command_line.py
+++ b/dfvfs/helpers/command_line.py
@@ -803,7 +803,7 @@ class CLIVolumeScannerMediator(volume_scanner.VolumeScannerMediator):
if credential_type == 'key':
try:
- ... | Changed decode('hex') into codecs.decode('hex') for Python 3 (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -65,8 +65,8 @@ elif 'macosx-10.' in get_platform():
platform_sources = []
platform_libraries = []
platform_include_dirs = []
- platform_extra_compile_args = ['-v', '-ggdb']
- platform_extra_link_args = ['-... | setup: remove -ggdb compilation flag on macOS macOS uses clang instead of gcc since a few versions now. -ggdb argument is for GNU gcc: -ggdb Produce debugging information for use by GDB. This means to use the most expressive format available (DWARF, stabs, or the native format if neither of those are suppo... | py |
diff --git a/asciimatics/screen.py b/asciimatics/screen.py
index <HASH>..<HASH> 100644
--- a/asciimatics/screen.py
+++ b/asciimatics/screen.py
@@ -1770,6 +1770,7 @@ if sys.platform == "win32":
else:
# UNIX compatible platform - use curses
import curses
+ import termios
class _CursesScreen(Screen):
... | Tentative fix for cygwin backspace issue | py |
diff --git a/habu/lib/fqdn_finder.py b/habu/lib/fqdn_finder.py
index <HASH>..<HASH> 100644
--- a/habu/lib/fqdn_finder.py
+++ b/habu/lib/fqdn_finder.py
@@ -52,9 +52,10 @@ def fqdns_from_ct_log(domain, cache=True, verbose=False):
json_data = json.loads(req.text)
for data in json_data:
- name = data['na... | fixed error on unresolvable DNS entries | py |
diff --git a/service_configuration_lib/__init__.py b/service_configuration_lib/__init__.py
index <HASH>..<HASH> 100644
--- a/service_configuration_lib/__init__.py
+++ b/service_configuration_lib/__init__.py
@@ -156,11 +156,14 @@ def get_service_from_port(port, all_services=None):
all_services = read_services_c... | Compressed code and added conversion to int | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = "9.2.15"
+__version__ = "9.2.16" | Increased version number to <I>. | py |
diff --git a/tools/log_tools/logmerger.py b/tools/log_tools/logmerger.py
index <HASH>..<HASH> 100755
--- a/tools/log_tools/logmerger.py
+++ b/tools/log_tools/logmerger.py
@@ -138,6 +138,7 @@ class ApprunnerTarFile():
'apprunner.log', #apprunner logging
'\.Benchmark\.(?!jstack)', ... | Add schemachange app to recognized apprunner log types. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='py-timeparser',
- version='0.3.1',
+ version='0.3.2',
description='Parse time string (e.g. 1h5min)',
author='utgwkk',
author_email='utaga... | Bump up to <I> | py |
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cloud.py
+++ b/salt/utils/cloud.py
@@ -188,7 +188,7 @@ def minion_config(opts, vm_):
'''
# Let's get a copy of the salt minion default options
- minion = salt.config.DEFAULT_MINION_OPTS.copy()
+ minion ... | A deep copy should be used for default options. Use deep copy to get default master and minion options to avoid altering them. This fixes an issue encountered when defining grains for multiple nodes in a salt-cloud map file. Nodes deployed later in the process were getting grains for previously deployed nodes. | py |
diff --git a/gbdxtools/vectors.py b/gbdxtools/vectors.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/vectors.py
+++ b/gbdxtools/vectors.py
@@ -198,8 +198,11 @@ class Vectors(object):
if num_results > count: break
yield vector
+ if item_count == num_results:
+ return
+
# ... | prevent another api call when all the items are already gotten in the first call | py |
diff --git a/anyconfig/dicts.py b/anyconfig/dicts.py
index <HASH>..<HASH> 100644
--- a/anyconfig/dicts.py
+++ b/anyconfig/dicts.py
@@ -272,7 +272,10 @@ def _get_update_fn(strategy):
try:
return _MERGE_FNS[strategy]
except KeyError:
- raise ValueError("Wrong merge strategy: %r" % strategy)
+ ... | allow ac_merge to be a function for user-defined merge strategies | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,10 +50,10 @@ setup(name='sphinx-server',
'paste.app_factory': ['main=sphinxserver:app_factory'],
},
keywords="wsgi sphinx documentation server webapps",
- classifiers=['Development Status :: 1... | fixing categories for pypi | py |
diff --git a/openid/test/storetest.py b/openid/test/storetest.py
index <HASH>..<HASH> 100644
--- a/openid/test/storetest.py
+++ b/openid/test/storetest.py
@@ -22,8 +22,6 @@ def generateHandle(n):
generateSecret = randomString
-allowed_nonce = string.letters + string.digits
-
def getTmpDbName():
hostname = so... | [project @ test.storetest: remove unused allowed_nonce] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ setuptools.setup(
'django_extensions',
'html5lib==0.999', # See: https://github.com/html5lib/html5lib-python/issues/189 and https://github.com/pydanny-archive/django-wysiwyg/issues/61
... | Upgrade Pillow to 4+ so we can use BytesIO for image conversions #<I> Pillow versions prior to 4 had a bug where you could not save any image that required compression (e.g. TIFF, PNG) when using a `BytesIO` object to store the image data. This would result in the error message: OSError: encoder error -9 when wri... | py |
diff --git a/pytplot/QtPlotter/TVarFigure1D.py b/pytplot/QtPlotter/TVarFigure1D.py
index <HASH>..<HASH> 100644
--- a/pytplot/QtPlotter/TVarFigure1D.py
+++ b/pytplot/QtPlotter/TVarFigure1D.py
@@ -169,12 +169,12 @@ class TVarFigure1D(pg.GraphicsLayout):
return
def _addtimebars(self):
- self.tva... | Getting rid of other timebar stuff temporarily | py |
diff --git a/src/apiron/client.py b/src/apiron/client.py
index <HASH>..<HASH> 100644
--- a/src/apiron/client.py
+++ b/src/apiron/client.py
@@ -102,6 +102,7 @@ def build_request_object(
headers=None,
cookies=None,
auth=None,
+ proxies=proxies,
**kwargs,
):
host = choose_host(service=service)... | #<I> Add proxies arg to call method | py |
diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -62,7 +62,11 @@ error_wait_seconds = float(os.getenv('GEOPY_TEST_ERROR_WAIT_SECONDS', 3))
no_retries_for_hosts = set(os.getenv('GEOPY_TEST_NO_RETRIES_FOR_HOSTS', '').split(','))
default_adapte... | Tests: retry <I> and <I> HTTP errors | py |
diff --git a/microraiden/microraiden/test/test_broke_proxy.py b/microraiden/microraiden/test/test_broke_proxy.py
index <HASH>..<HASH> 100644
--- a/microraiden/microraiden/test/test_broke_proxy.py
+++ b/microraiden/microraiden/test/test_broke_proxy.py
@@ -11,7 +11,8 @@ def test_cheating_client(
doggo_proxy,
... | rebase fix for insufficient proxy funds test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
version="0.6.1",
packages=find_packages(),
- install_requires=['pandas', 'numpy', 'matplotlib'],
+ install_requires=['pandas', 'numpy', 'matplotlib', 'pysis'],
setup_requires=['pyte... | add pysis to install_requires | py |
diff --git a/fbchat/models.py b/fbchat/models.py
index <HASH>..<HASH> 100644
--- a/fbchat/models.py
+++ b/fbchat/models.py
@@ -131,6 +131,17 @@ class Group(Thread):
self.approval_requests = approval_requests
self.join_link = join_link
+
+class Room(Group):
+ # True is room is not discoverable
+ ... | Backwards compability for `Room`s | py |
diff --git a/plenum/common/stacked.py b/plenum/common/stacked.py
index <HASH>..<HASH> 100644
--- a/plenum/common/stacked.py
+++ b/plenum/common/stacked.py
@@ -466,6 +466,8 @@ class NodeStacked(Batched):
tmsg = msg.melted()
elif isinstance(msg, Request):
tmsg = msg.__getstate__()
+ ... | Node can also convert a namedtuple before sending to the client | 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
@@ -486,16 +486,20 @@ class RGB(Image):
def __init__(self, data, **params):
+ sliced = None
if isinstance(data, Overlay):
... | RGB now normalizes the data of the input Image elements appropriately | py |
diff --git a/sphinxcontrib/paverutils.py b/sphinxcontrib/paverutils.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/paverutils.py
+++ b/sphinxcontrib/paverutils.py
@@ -110,8 +110,8 @@ def pdf(options):
options.order('pdf')
pdflatex = options.get('pdflatex', 'pdflatex')
paths = _get_paths(options)
- ... | if the outdir is set, use that instead of building a value | py |
diff --git a/salt/cloud/clouds/joyent.py b/salt/cloud/clouds/joyent.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/joyent.py
+++ b/salt/cloud/clouds/joyent.py
@@ -41,7 +41,7 @@ from __future__ import absolute_import
# Import python libs
import os
import copy
-import six.moves.http_client # pylint: disable=E... | Replaced module six in file /salt/cloud/clouds/joyent.py | py |
diff --git a/oplus/version.py b/oplus/version.py
index <HASH>..<HASH> 100644
--- a/oplus/version.py
+++ b/oplus/version.py
@@ -1 +1 @@
-version='6.0.2.dev3'
+version='6.0.1.dev2' | [skip ci] updated version as <I>.dev2 | py |
diff --git a/nion/swift/DocumentController.py b/nion/swift/DocumentController.py
index <HASH>..<HASH> 100644
--- a/nion/swift/DocumentController.py
+++ b/nion/swift/DocumentController.py
@@ -1257,7 +1257,7 @@ class DocumentController(Observable.Broadcaster):
functools.partial(sho... | Remove unused base class 'Broadcaster' from 'SelectedDataItemBinding'. | py |
diff --git a/pcef/core/modes/code_completion.py b/pcef/core/modes/code_completion.py
index <HASH>..<HASH> 100644
--- a/pcef/core/modes/code_completion.py
+++ b/pcef/core/modes/code_completion.py
@@ -319,10 +319,13 @@ class CodeCompletionMode(Mode, QtCore.QObject):
isEndOfWordChar or
... | Hide pop if user quickly deleted its starting word | py |
diff --git a/mutagen/_ogg.py b/mutagen/_ogg.py
index <HASH>..<HASH> 100644
--- a/mutagen/_ogg.py
+++ b/mutagen/_ogg.py
@@ -48,6 +48,7 @@ class OggPage(object):
position = -1L
serial = 0
sequence = 0
+ offset = None
finished = True
def __init__(self, fileobj=None):
@@ -56,6 +57,8 @@ class O... | OggPage: Store file offset. | py |
diff --git a/src/python/tmclient/download.py b/src/python/tmclient/download.py
index <HASH>..<HASH> 100644
--- a/src/python/tmclient/download.py
+++ b/src/python/tmclient/download.py
@@ -51,7 +51,7 @@ class DownloadService(ExperimentService):
raise OSError('Download directory does not exist: %s', directory... | Fix bug related to saving files on Windows platforms | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ setup(
install_requires=[
"fonttools>=3.24.0",
"attrs>=17.3.0",
+ "lxml",
"typing ; python_version<'3.5'",
],
classifiers=[ | setup.py: require lxml | py |
diff --git a/safe/gui/tools/multi_exposure_dialog.py b/safe/gui/tools/multi_exposure_dialog.py
index <HASH>..<HASH> 100644
--- a/safe/gui/tools/multi_exposure_dialog.py
+++ b/safe/gui/tools/multi_exposure_dialog.py
@@ -694,6 +694,7 @@ class MultiExposureDialog(QDialog, FORM_CLASS):
def reject(self):
"""... | clear the output layers list when you close the multi dialog | py |
diff --git a/master/buildbot/clients/tryclient.py b/master/buildbot/clients/tryclient.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/clients/tryclient.py
+++ b/master/buildbot/clients/tryclient.py
@@ -355,9 +355,13 @@ class GitExtractor(SourceStampExtractor):
ref = self.config.get("branch." + self.branch... | Try changes compared to master branch when using git by default. If the current branch has no tracking branch, use master as the base revision, otherwise the branch itself was used and we were left with an empty diff if there were no uncommitted changes. | py |
diff --git a/pydevd.py b/pydevd.py
index <HASH>..<HASH> 100644
--- a/pydevd.py
+++ b/pydevd.py
@@ -423,7 +423,7 @@ class PyDB:
pydev_log.error_once(
'Error in debugger: Found PyDBDaemonThread not marked with is_pydev_daemon_thread=True.\n')
- if isThreadAlive(t) and no... | Fix Debugger crashes with "Process finished with exit code <I>" (PY-<I>) Do not finish debugging session by force in CheckOutputThread if there are alive daemon threads. (cherry picked from commit bf<I>d<I>cdf<I>d<I>a<I>f<I>b0d9fefc<I>abae) | py |
diff --git a/tests/test_pysensu_yelp.py b/tests/test_pysensu_yelp.py
index <HASH>..<HASH> 100644
--- a/tests/test_pysensu_yelp.py
+++ b/tests/test_pysensu_yelp.py
@@ -51,7 +51,7 @@ class TestPySensuYelp:
assert pysensu_yelp.human_to_seconds('1M1m') == 2592060
assert pysensu_yelp.human_to_seconds('1Y1M... | Fix 'is None' test comparison | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -700,7 +700,7 @@ class SourceAdmin(StripeModelAdmin):
@admin.register(models.PaymentMethod)
class PaymentMethodAdmin(StripeModelAdmin):
- list_display = ("customer", "billing_details"... | Added type field to PaymentMethodAdmin.list_display | py |
diff --git a/pgpy/util.py b/pgpy/util.py
index <HASH>..<HASH> 100644
--- a/pgpy/util.py
+++ b/pgpy/util.py
@@ -2,20 +2,21 @@
utility functions for debutils.pgp
"""
+import binascii
+import math
+from enum import IntEnum
+
def bytes_to_int(b):
- n = 0
- for octet in bytearray(b):
- n += octet
- ... | simplified bytes_to_int and int_to_bytes; added the ability for int_to_bytes to zero pad | py |
diff --git a/odl/util/phantom.py b/odl/util/phantom.py
index <HASH>..<HASH> 100644
--- a/odl/util/phantom.py
+++ b/odl/util/phantom.py
@@ -301,13 +301,13 @@ if __name__ == '__main__':
import odl
# 2D
- disc = odl.uniform_discr([-1, -1], [1, 1], [5, 5])
+ disc = odl.uniform_discr([-1, -1], [1, 1], [200... | MAINT: increase size of examples in phantom | py |
diff --git a/flaky/flaky_pytest_plugin.py b/flaky/flaky_pytest_plugin.py
index <HASH>..<HASH> 100644
--- a/flaky/flaky_pytest_plugin.py
+++ b/flaky/flaky_pytest_plugin.py
@@ -334,7 +334,8 @@ class FlakyCallInfo(CallInfo):
else:
if is_call:
if self.excinfo is not None:
- ... | Ignore skipped py.test tests | py |
diff --git a/prestans/devel/gen/closure.py b/prestans/devel/gen/closure.py
index <HASH>..<HASH> 100644
--- a/prestans/devel/gen/closure.py
+++ b/prestans/devel/gen/closure.py
@@ -279,6 +279,7 @@ class Model(Base):
model_name = model_blueprint['constraints']['model_template']
attributes = list(... | fixed bug in filters where dependency list was not being cleared for filters | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -67,6 +67,12 @@ if SystemEncoding and not sys.platform.startswith('win32'):
ex = Exception(err)
print(err)
raise ex
+
+if not SystemEncoding:
+ # ASSUME UTF-8 encoding, if for whatever reason,
+ # we can't get the default... | Assume the system encoding is UTF-8 if it can't be detected | py |
diff --git a/Qt.py b/Qt.py
index <HASH>..<HASH> 100644
--- a/Qt.py
+++ b/Qt.py
@@ -1486,11 +1486,18 @@ def _pyqt5():
import PyQt5 as module
extras = ["uic"]
+
try:
import sip
- extras.append(sip.__name__)
+ extras += ["sip"]
except ImportError:
- sip = None
+
+ ... | Add support for PyQt5 <I>+ | py |
diff --git a/djedi/templatetags/djedi_admin.py b/djedi/templatetags/djedi_admin.py
index <HASH>..<HASH> 100644
--- a/djedi/templatetags/djedi_admin.py
+++ b/djedi/templatetags/djedi_admin.py
@@ -12,9 +12,14 @@ logger = logging.getLogger(__name__)
@register.simple_tag(takes_context=True)
def djedi_admin(context):
... | Clear content-io pipeline after rendering admin panel | py |
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/viaplay.py
+++ b/lib/svtplay_dl/service/viaplay.py
@@ -70,12 +70,11 @@ class Viaplay(Service, OpenGraphThumbMixin):
if match:
janson = json.lo... | viaplay: dont run len on int's to check if its empty string fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name='pyarlo',
packages=['pyarlo'],
- version='0.0.6',
+ version='0.0.7',
description='Python Arlo is a library written in Python 2.7/3x ' +
... | Bump dev version <I> | py |
diff --git a/src/collectors/rabbitmq/rabbitmq.py b/src/collectors/rabbitmq/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/src/collectors/rabbitmq/rabbitmq.py
+++ b/src/collectors/rabbitmq/rabbitmq.py
@@ -112,7 +112,7 @@ class RabbitMQCollector(diamond.collector.Collector):
for key in queue:
... | Prefix vhosts metrics with 'vhosts' Add a "vhosts" prefix to the metric key so that it's easier to differentiate from other base level metric keys (ie, message_stats, object_totals, and queue_totals.) | py |
diff --git a/johnny/tests/cache.py b/johnny/tests/cache.py
index <HASH>..<HASH> 100755
--- a/johnny/tests/cache.py
+++ b/johnny/tests/cache.py
@@ -512,6 +512,15 @@ class SingleModelTest(QueryCacheBase):
second = list(Genre.objects.filter(title__startswith='A').order_by('slug'))
self.failUnless(len(mis... | add a test looking for behavior in #<I>, which passes on johnny-tip | py |
diff --git a/tests/test_camera.py b/tests/test_camera.py
index <HASH>..<HASH> 100644
--- a/tests/test_camera.py
+++ b/tests/test_camera.py
@@ -128,6 +128,12 @@ def test_cameras_have_correct_distance_in_stereocameragroup():
assert (cam.right.position.x - cam.left.position.x) == cam.distance
+def test_projection... | added a test to cover copy method used in StereoCameraGroup | py |
diff --git a/git/compat.py b/git/compat.py
index <HASH>..<HASH> 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -34,8 +34,6 @@ defenc = sys.getfilesystemencoding()
if PY3:
binary_type = bytes
else:
- if defenc == 'ascii':
- defenc = 'utf-8'
binary_type = str | Remove Python 2 check for compat.defenc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='slacker',
- version='0.9.28',
+ version='0.9.29',
packages=['slacker'],
description='Slack API client',
author='Oktay Sancak', | Set version number to <I> | py |
diff --git a/pyeda/boolalg/expr.py b/pyeda/boolalg/expr.py
index <HASH>..<HASH> 100644
--- a/pyeda/boolalg/expr.py
+++ b/pyeda/boolalg/expr.py
@@ -1128,12 +1128,6 @@ class ExprOrAnd(_ArgumentContainer, sat.DPLLInterface):
return False
return id(self) < id(other)
- def invert(self):
- ... | Use Nor/Nand for Or/And invert method | py |
diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py
index <HASH>..<HASH> 100644
--- a/pysnmp/entity/rfc3413/ntforg.py
+++ b/pysnmp/entity/rfc3413/ntforg.py
@@ -23,8 +23,7 @@ class NotificationOriginator:
pduVersion,
PDU,
statusInformation,
- sendPduHandle,
- ... | no context to pass back to cb | py |
diff --git a/wonambi/trans/select.py b/wonambi/trans/select.py
index <HASH>..<HASH> 100644
--- a/wonambi/trans/select.py
+++ b/wonambi/trans/select.py
@@ -9,7 +9,7 @@ content of the data.
Select should be as flexible as possible. There are quite a few cases, which
will be added as we need them.
"""
-from collections... | use collections.abc instead of collections (python <I>) | py |
diff --git a/salt/output/nested.py b/salt/output/nested.py
index <HASH>..<HASH> 100644
--- a/salt/output/nested.py
+++ b/salt/output/nested.py
@@ -1,5 +1,5 @@
'''
-Recursively display nested data, this is the default outputter.
+Recursively display nested data, this is the default outputter.
'''
# Import salt lib... | Fix bug in nested outputter when displaying floats Just a simple fix for a bug that was keeping floating-point numbers from showing up in the new nested outputter. | py |
diff --git a/workbench/workers/pe_features_df.py b/workbench/workers/pe_features_df.py
index <HASH>..<HASH> 100644
--- a/workbench/workers/pe_features_df.py
+++ b/workbench/workers/pe_features_df.py
@@ -62,6 +62,8 @@ def all_files_in_directory(path):
return file_list
# Unit test: Create the class, the proper in... | adding a xfail mark; opening an issue | py |
diff --git a/bugwarrior/db.py b/bugwarrior/db.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/db.py
+++ b/bugwarrior/db.py
@@ -288,7 +288,10 @@ def synchronize(issue_generator, conf):
issue_updates['changed'].append(task)
else:
issue_updates['existing'].append(task)
- ... | Only remove existing uuids if they are found. | py |
diff --git a/dddp/__init__.py b/dddp/__init__.py
index <HASH>..<HASH> 100644
--- a/dddp/__init__.py
+++ b/dddp/__init__.py
@@ -26,10 +26,9 @@ REMOVED = 'removed'
def greenify():
"""Patch threading and psycopg2 modules for green threads."""
- if 'threading' in sys.modules:
+ from gevent.monkey import patch... | Don't barf on multiple invocations of greenify(). | py |
diff --git a/lab_members/models.py b/lab_members/models.py
index <HASH>..<HASH> 100644
--- a/lab_members/models.py
+++ b/lab_members/models.py
@@ -21,9 +21,10 @@ class Position(models.Model):
return self.title
-class Scientist(models.Model):
+class ScientistBase(models.Model):
class Meta:
+ a... | Make abstract ScientistBase class and extend with Scientist subclass | py |
diff --git a/py3o/template/main.py b/py3o/template/main.py
index <HASH>..<HASH> 100644
--- a/py3o/template/main.py
+++ b/py3o/template/main.py
@@ -264,6 +264,10 @@ class Template(object):
nsmap={'py': GENSHI_URI},
)
+ # remove links from tags
+ opening_row.remove(link)
+ clo... | Remove the opening and closing links from the tree before moving siblings With this change we ensure that all elements are copied to the result tree and the link elements are removed. | py |
diff --git a/pythainlp/tokenize/__init__.py b/pythainlp/tokenize/__init__.py
index <HASH>..<HASH> 100644
--- a/pythainlp/tokenize/__init__.py
+++ b/pythainlp/tokenize/__init__.py
@@ -56,6 +56,8 @@ def dict_word_tokenize(text,file='',engine="newmm",data=[''],data_type="file"):
lines = data
if engine=="newmm":
fr... | made dict_word_tokenize() to work with new edited newmm.py | py |
diff --git a/bugsy/bugsy.py b/bugsy/bugsy.py
index <HASH>..<HASH> 100644
--- a/bugsy/bugsy.py
+++ b/bugsy/bugsy.py
@@ -144,7 +144,12 @@ class Bugsy(object):
if 'error' not in result:
bug._bug['id'] = result['id']
bug._bugsy = self
- bug._bug.pop('comment')
+... | Handle the case where isnt on the | py |
diff --git a/salt/modules/node.py b/salt/modules/node.py
index <HASH>..<HASH> 100644
--- a/salt/modules/node.py
+++ b/salt/modules/node.py
@@ -213,7 +213,7 @@ def export(local=False, path="/tmp", format='qcow2'):
description = _("query").Query('all', cachedir=__opts__['cachedir'])()
return _("collecto... | Fix lint: PEP8 multiplication of 4. | py |
diff --git a/openpnm/geometry/StickAndBall.py b/openpnm/geometry/StickAndBall.py
index <HASH>..<HASH> 100644
--- a/openpnm/geometry/StickAndBall.py
+++ b/openpnm/geometry/StickAndBall.py
@@ -116,9 +116,15 @@ class StickAndBall(GenericGeometry):
self.add_model(propname='throat.conduit_lengths',
... | [ci skip] added the hydraulic model | py |
diff --git a/exchangelib/transport.py b/exchangelib/transport.py
index <HASH>..<HASH> 100644
--- a/exchangelib/transport.py
+++ b/exchangelib/transport.py
@@ -72,17 +72,13 @@ def get_auth_instance(credentials, auth_type):
"""
Returns an *Auth instance suitable for the requests package
"""
- try:
- ... | Convert ValueError to assert All consumers have already verified the auth_type | py |
diff --git a/scour/scour.py b/scour/scour.py
index <HASH>..<HASH> 100644
--- a/scour/scour.py
+++ b/scour/scour.py
@@ -975,7 +975,6 @@ def removeNamespacedAttributes(node, namespaces):
def removeNamespacedElements(node, namespaces):
- global _num_elements_removed
num = 0
if node.nodeType == Node.ELEME... | removeNamespacedElements: Avoid calling it twice as it is indempotent | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -2,7 +2,7 @@
import pytest
from six import PY2, text_type as str, with_metaclass
-from tossi import get_particle, postfix_particle as f, registry
+from tossi import get_particle, pick_particle, postfix_particle as f, registry
... | Add test case for pick_particle() first | py |
diff --git a/tests/unit/modules/virtualenv_test.py b/tests/unit/modules/virtualenv_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/virtualenv_test.py
+++ b/tests/unit/modules/virtualenv_test.py
@@ -18,13 +18,12 @@ ensure_in_syspath('../../')
# Import 3rd party libs
try:
import virtualenv
- print ... | Small code and print's cleanup. | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -961,10 +961,12 @@ class Torrent():
piece_size=self.piece_size,
queue_size=threads*3,
... | Torrent.verify_content(): Skip files in hashers and hash collector | py |
diff --git a/stdeb/util.py b/stdeb/util.py
index <HASH>..<HASH> 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -555,8 +555,6 @@ class DebianInfo:
need_custom_binary_target = False
self.do_pycentral_removal_preinst = pycentral_backwards_compatibility
- if pycentral_backwards_compatibility:
... | Don't include python-central in build package's Depends list. No need to depend on python-central, previous package depended on it, so `which pycentral` check should be enough. | py |
diff --git a/build/build.py b/build/build.py
index <HASH>..<HASH> 100755
--- a/build/build.py
+++ b/build/build.py
@@ -1109,6 +1109,10 @@ else:
usePromiscuousSsl = 1
elif arg == '--promiscuous-ssl=off':
usePromiscuousSsl = 0
+ elif arg == '--no-self-update':
+ pass
+ elif arg == '--local':... | Restored some obsolete build-script args as noops | py |
diff --git a/bcbio/structural/cnvkit.py b/bcbio/structural/cnvkit.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/cnvkit.py
+++ b/bcbio/structural/cnvkit.py
@@ -23,7 +23,7 @@ from bcbio.pipeline import datadict as dd
from bcbio.pipeline import config_utils
from bcbio.provenance import do
from bcbio.variation i... | Fixed missing import of bio.structrural.shared Line <I> in cnvkit.py calls shared.find_case_control() but `shared` module was not imported. | py |
diff --git a/schedule/__init__.py b/schedule/__init__.py
index <HASH>..<HASH> 100644
--- a/schedule/__init__.py
+++ b/schedule/__init__.py
@@ -15,7 +15,7 @@ Features:
- A simple to use API for scheduling jobs.
- Very lightweight and no external dependencies.
- Excellent test coverage.
- - Works with P... | Sync Docstring with README | py |
diff --git a/padatious/simple_intent.py b/padatious/simple_intent.py
index <HASH>..<HASH> 100644
--- a/padatious/simple_intent.py
+++ b/padatious/simple_intent.py
@@ -24,7 +24,6 @@ class Ids(StrEnum):
class SimpleIntent(object):
"""General intent used to match sentences or phrases"""
- HID_SIZE = 15
NUM... | Change simple intent network size to scale based input size | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -408,6 +408,7 @@ def backup_sql(backup_file_name, config):
run('mkdir -p ' + config['backupFolder'])
if config['supportsZippedBackups']:
run('rm -f '+backup_file_name)
+ run('rm -f... | delete gz file even though we have no idea if its there or not. Maybe replace by some file_exists | py |
diff --git a/mtools/version.py b/mtools/version.py
index <HASH>..<HASH> 100644
--- a/mtools/version.py
+++ b/mtools/version.py
@@ -1 +1 @@
-__version__ = '1.0.2dev'
+__version__ = '1.0.2' | BUMPED version to <I> | py |
diff --git a/commonsdownloader/thumbnaildownload.py b/commonsdownloader/thumbnaildownload.py
index <HASH>..<HASH> 100644
--- a/commonsdownloader/thumbnaildownload.py
+++ b/commonsdownloader/thumbnaildownload.py
@@ -32,6 +32,13 @@ class RequestedWidthBiggerThanSourceException(DownloadException):
pass
+class Cou... | Raise exception when file cannot be written on disk If the file cannot be written on disk, raising an IOError, then we log it as error and raise a DownloadException to be handled be the caller. Add new Exception CouldNotWriteFileOnDiskException. Addresses #8. | py |
diff --git a/pyvex/lifting/gym/arm_spotter.py b/pyvex/lifting/gym/arm_spotter.py
index <HASH>..<HASH> 100644
--- a/pyvex/lifting/gym/arm_spotter.py
+++ b/pyvex/lifting/gym/arm_spotter.py
@@ -270,6 +270,14 @@ class Instruction_tMSR(ThumbInstruction):
# TODO haha lol yeah right
l.debug("[thumb] Ignoring... | ARM day is cool and all, but in this gym, we NEVER skip Thumb day! (Spot MRS.W instruction to a NOP, for now...) | py |
diff --git a/bibliopixel/animation/animation.py b/bibliopixel/animation/animation.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/animation.py
+++ b/bibliopixel/animation/animation.py
@@ -199,15 +199,6 @@ class Animation(object):
self.runner.set_project(self.project)
self.threading.... | Get rid of animation._step property * Bad idea to have added it - derived animations use it differently | py |
diff --git a/ricecooker/managers.py b/ricecooker/managers.py
index <HASH>..<HASH> 100644
--- a/ricecooker/managers.py
+++ b/ricecooker/managers.py
@@ -515,6 +515,9 @@ class ChannelManager:
"""
if config.VERBOSE:
sys.stderr.write("\n{indent}Processing {title} ({kind})".format(indent=" " ... | Don't bother making request to add children if there aren't any. | py |
diff --git a/tensorflow_probability/python/internal/backend/jax/rewrite.py b/tensorflow_probability/python/internal/backend/jax/rewrite.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/internal/backend/jax/rewrite.py
+++ b/tensorflow_probability/python/internal/backend/jax/rewrite.py
@@ -45,6 +45,7 @@... | Add a rewrite rule to jax, renaming NumpyTest to JaxTest PiperOrigin-RevId: <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.